-
-
Notifications
You must be signed in to change notification settings - Fork 20
35 lines (33 loc) · 929 Bytes
/
release.yml
File metadata and controls
35 lines (33 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: release
on:
push:
tags:
- v1.*
- v2.*
- v3.*
permissions:
contents: write
jobs:
release:
env:
CI: true
GITHUB_TOKEN: ${{ secrets.ACTION_GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Need history for changelog generation
- uses: jdx/mise-action@v4
- 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}}