Skip to content

Commit 24ca8d1

Browse files
authored
Update Node.js version and add permissions
Updated Node.js version and added permissions for OIDC.
1 parent 145da63 commit 24ca8d1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ on:
66
release:
77
types: [published]
88

9+
permissions:
10+
id-token: write # Required for OIDC
11+
contents: read
12+
913
jobs:
1014
build-and-publish:
1115
runs-on: ubuntu-latest
1216
steps:
1317
- uses: actions/checkout@v3
1418
- uses: actions/setup-node@v3
1519
with:
16-
node-version: '16.x'
20+
node-version: '24'
1721
registry-url: 'https://registry.npmjs.org'
1822
- run: npm install
1923
- run: npm run build
2024
- run: npm publish dist/ --access=public
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)