Skip to content

Commit 155fbbe

Browse files
committed
ci: update publish step
1 parent 58b452f commit 155fbbe

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
1014
steps:
11-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1216
- uses: actions/setup-node@v6
1317
with:
1418
node-version-file: .nvmrc
15-
registry-url: https://registry.npmjs.org/
16-
always-auth: true
19+
registry-url: https://registry.npmjs.org
20+
package-manager-cache: false
1721
- run: yarn install --frozen-lockfile
18-
- run: npm publish --access public
19-
env:
20-
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
21-
CI: true
22+
- run: npm publish

0 commit comments

Comments
 (0)