Skip to content

Commit 017fea2

Browse files
committed
feat: set up pre-release workflow
Signed-off-by: Jon Koops <[email protected]>
1 parent 7e3cef5 commit 017fea2

File tree

3 files changed

+9168
-2863
lines changed

3 files changed

+9168
-2863
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,39 @@ on:
33
push:
44
branches:
55
- master
6-
- "[0-9]+.[0-9]+.x"
6+
- beta
7+
8+
permissions:
9+
contents: read # for checkout
710

811
jobs:
912
release:
10-
name: release
13+
name: Release
1114
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write # to be able to publish a GitHub release
17+
issues: write # to be able to comment on released issues
18+
pull-requests: write # to be able to comment on released pull requests
19+
id-token: write # to enable use of OIDC for npm provenance
1220
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0 # fetch all history
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
1528
with:
16-
node-version: "20.x"
17-
- run: npm ci
18-
- run: npm run build
19-
- run: npx semantic-release
29+
node-version: 22
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Run build
35+
run: npm run build
36+
37+
- name: Release
2038
env:
2139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2240
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: npx semantic-release

0 commit comments

Comments
 (0)