Skip to content

Commit e28d016

Browse files
authored
ci(publish): use OIDC publish to npm (#1557)
* ci(publish): use OIDC publish to npm * chore: 补充权限
1 parent 08ef14b commit e28d016

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release-cherry-markdown-build.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: 'Build Cherry Markdown Release'
22

3+
permissions:
4+
contents: read
5+
id-token: write
6+
37
on:
48
workflow_call:
59
jobs:
@@ -25,6 +29,3 @@ jobs:
2529
2630
cd packages/cherry-markdown
2731
npm publish --access public
28-
env:
29-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)