Skip to content

Commit 7044855

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/cd.yaml

Lines changed: 6 additions & 1 deletion
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
@@ -29,7 +35,6 @@ jobs:
2935
- name: Release
3036
env:
3137
GITHUB_TOKEN: ${{ secrets.VENUS_TOOLS_TOKEN }}
32-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3338
GIT_AUTHOR_NAME: Venus Tools
3439
GIT_AUTHOR_EMAIL: tools@venus.io
3540
GIT_COMMITTER_NAME: Venus Tools

0 commit comments

Comments
 (0)