Skip to content

Commit 7bf8acc

Browse files
committed
fix: GitHub actions for publish
1 parent 3098ae0 commit 7bf8acc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish-latest.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
publish:
1212
if: "!github.event.release.prerelease"
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
id-token: write
1417
environment: npm
1518

1619
steps:
@@ -22,6 +25,6 @@ jobs:
2225
cache: "npm"
2326
- run: npm ci
2427
- run: npm pkg delete scripts devDependencies
25-
- run: npm publish --provenance --tag=latest
28+
- run: npm publish --provenance --access public --tag=latest
2629
env:
2730
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)