Skip to content

Commit 2b35a09

Browse files
authored
fix: Update release.yml (#240)
1 parent 41bf28a commit 2b35a09

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
name: NPM release
2+
23
on:
34
push:
45
branches:
56
- master
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
612
jobs:
713
release:
814
name: Release
915
runs-on: ubuntu-latest
16+
1017
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v3
13-
- name: Install dependencies
14-
run: yarn
15-
- name: Build package
16-
run: yarn build
17-
- name: Semantic Release
18-
uses: cycjimmy/semantic-release-action@v3
19-
env:
20-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
18+
- name: Checkout
19+
uses: actions/checkout@v6
20+
21+
- name: Setup Node
22+
uses: actions/setup-node@v6
23+
with:
24+
node-version: 24
25+
registry-url: https://registry.npmjs.org/
26+
27+
- name: Install dependencies
28+
run: yarn --frozen-lockfile
29+
30+
- name: Build package
31+
run: yarn build
32+
33+
- name: Semantic Release
34+
uses: cycjimmy/semantic-release-action@v6
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)