-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.03 KB
/
release.yml
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:
- "v*"
jobs:
test:
uses: ./.github/workflows/ci.yml
release:
needs: test
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20.0.0"
cache: npm
- name: Build
run: |
npm ci
npm run build
- name: Extract changelog
run: |
VERSION="${GITHUB_REF_NAME#v}"
sh scripts/print-changelog.sh "$VERSION" >| ${{ github.workspace }}/RELEASE_NOTES
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}/RELEASE_NOTES
prerelease: true
fail_on_unmatched_files: true
files: |
./dist/bin/bare