Skip to content

ci(release): add changelog to release ci #11

ci(release): add changelog to release ci

ci(release): add changelog to release ci #11

Workflow file for this run

name: release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 56, Col: 16): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.changelog.outputs.changes, (Line: 55, Col: 9): Required property is missing: run
on:
push:
tags:
- "v*.*.*"
- "v*.*.*-pre"
workflow_call:
jobs:
release:
runs-on: ubuntu-latest
name: Building stack
steps:
- name: Checkout
uses: actions/checkout@v5
- name: "Setup pnpm"
uses: pnpm/action-setup@v4
- name: "Setup node"
uses: actions/setup-node@v4
with:
node-version: 23.6.0
cache: "pnpm"
- name: "Install dependencies"
run: pnpm install
- name: "Install emscipten"
uses: "mymindstorm/setup-emsdk@v14"
with:
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: "Build"
run: pnpm build
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
# fromTag: ${{ github.ref_name }}
# toTag: ${{ env.previousTag }}
writeToFile: false
- name: Release
shell: echo ${{ steps.changelog.outputs.changes }}