Skip to content

Commit af12310

Browse files
committed
Fix permissions for npm publish action
1 parent 7e671dc commit af12310

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@v4
1215
- uses: actions/setup-node@v4
1316
with:
1417
node-version: 22.15
18+
registry-url: "https://registry.npmjs.org"
1519
- run: npm ci
1620
- run: |
1721
npx babel ./src -d ./dist

0 commit comments

Comments
 (0)