Skip to content

Commit 96f481d

Browse files
Update action workflow for Trusted publishing
1 parent 538e43c commit 96f481d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
id-token: write # supports npmjs.com Trusted Publishers
10+
contents: read # to access the current repo
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
node-version: [12.x]
1415
steps:
1516
- uses: actions/checkout@v1
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
1819
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: npm login
21-
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > ~/.npmrc
20+
node-version: '24'
21+
registry-url: 'https://registry.npmjs.org'
2222
- name: npm publish
2323
run: npm publish

0 commit comments

Comments
 (0)