Skip to content

Commit 2e5041c

Browse files
authored
Update publish.yml
1 parent f4f7086 commit 2e5041c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ name: Publish Package to npmjs
22
on:
33
release:
44
types: [published]
5+
permissions:
6+
id-token: write
7+
contents: read
58
jobs:
69
build:
710
runs-on: ubuntu-latest
811
steps:
912
- uses: actions/checkout@v3
10-
# Setup .npmrc file to publish to npm
1113
- uses: actions/setup-node@v3
1214
with:
13-
node-version: '20.x'
15+
node-version: '24.x'
1416
registry-url: 'https://registry.npmjs.org'
1517
- run: yarn
1618
- run: yarn build
1719
- run: npm publish
18-
env:
19-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)