Skip to content

Commit c53b3f3

Browse files
authored
Merge pull request #36 from github/gp/oidc-migration
Update publish workflow to use latest actions and permissions
2 parents 1a709f7 + 7acda2d commit c53b3f3

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v1
16-
- name: Use Node.js 12.x
17-
uses: actions/setup-node@v1
15+
- uses: actions/checkout@v5
16+
- name: Use Node.js 24.x
17+
uses: actions/setup-node@v5
1818
with:
19-
node-version: 12.x
19+
node-version: 24.x
2020
- name: npm install, build, and test
2121
run: |
2222
npm install

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ on:
99
jobs:
1010
publish-npm:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
1214
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v5
1517
with:
16-
node-version: 14
18+
node-version: 24
1719
registry-url: https://registry.npmjs.org/
1820
cache: npm
1921
- run: npm ci
2022
- run: npm test
2123
- run: npm version ${TAG_NAME} --git-tag-version=false
2224
env:
2325
TAG_NAME: ${{ github.event.release.tag_name }}
24-
- run: npm whoami; npm --ignore-scripts publish
25-
env:
26-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26+
- run: npm --ignore-scripts publish --provenance

0 commit comments

Comments
 (0)