Skip to content

Merge pull request #294 from carlobeltrame/filter-workflow-runs #29

Merge pull request #294 from carlobeltrame/filter-workflow-runs

Merge pull request #294 from carlobeltrame/filter-workflow-runs #29

Workflow file for this run

name: release
on:
push:
tags:
- v1.*
- v2.*
permissions:
contents: write
jobs:
release:
env:
CI: true
GITHUB_TOKEN: ${{ secrets.ACTION_GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Need history for changelog generation
- uses: jdx/mise-action@v2
- run: pnpm i
- run: pnpm run build
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
- run: pnpm exec changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}