-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.01 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
36
37
38
39
40
41
42
43
44
45
46
name: Build and release
on:
push:
branches:
- 'beta'
- 'master'
jobs:
verify:
name: Verify and build
uses: ./.github/workflows/build.yml
secrets: inherit
release:
name: Release
runs-on: windows-latest
needs: verify
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Prepare
uses: actions/setup-node@v4
with:
# Do not include registy url here, it creates a .npmrc which prevents
# semantic-release from authenticating with npm
node-version: '22'
cache: 'npm'
- name: Install
run: npm ci
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: ./build
pattern: executable-*
merge-multiple: true
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release