Skip to content

Commit 7da6719

Browse files
committed
chore: updated permission on publish workflow
1 parent c96e999 commit 7da6719

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,21 @@ on:
77
jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
1013
steps:
1114
- name: Checkout repository
1215
uses: actions/checkout@v4
1316

1417
- name: Set up Node.js
1518
uses: actions/setup-node@v4
1619
with:
17-
node-version: 22
18-
registry-url: 'https://registry.npmjs.org/'
20+
node-version: '22'
21+
cache: 'npm'
22+
23+
- name: Set npm registry
24+
run: npm config set registry https://registry.npmjs.org/
1925

2026
- name: Install dependencies
2127
run: npm ci

0 commit comments

Comments
 (0)