Skip to content

Commit 0de70cc

Browse files
authored
chore: publish.yml (#3183)
* chore: publish.yml * add default permission
1 parent 7f6f09b commit 0de70cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
@@ -18,6 +22,4 @@ jobs:
1822
- run: pnpm install
1923
- run: pnpm run build
2024
- run: npm publish
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2325
working-directory: dist

0 commit comments

Comments
 (0)