Skip to content

Commit 72a28ff

Browse files
committed
ci: fix the release flow through Trusted Publishing
1 parent b3d1bdc commit 72a28ff

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/cd.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
- develop
88

9+
permissions:
10+
id-token: write # Required for OIDC
11+
contents: read
12+
913
jobs:
1014
release:
1115
runs-on: ubuntu-latest
@@ -19,6 +23,8 @@ jobs:
1923
- uses: actions/setup-node@v4
2024
with:
2125
cache: "yarn"
26+
node-version: '20'
27+
registry-url: 'https://registry.npmjs.org'
2228

2329
- name: Install dependencies
2430
run: yarn
@@ -27,11 +33,4 @@ jobs:
2733
run: yarn build
2834

2935
- name: Release
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.VENUS_TOOLS_TOKEN }}
32-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33-
GIT_AUTHOR_NAME: Venus Tools
34-
GIT_AUTHOR_EMAIL: [email protected]
35-
GIT_COMMITTER_NAME: Venus Tools
36-
GIT_COMMITTER_EMAIL: [email protected]
3736
run: yarn semantic-release

0 commit comments

Comments
 (0)