Skip to content

Commit d024d80

Browse files
authored
Merge pull request #25 from github/gp/oidc-migration
Simplify npm publish step in workflow
2 parents f600041 + 35e21e1 commit d024d80

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v5
1010
- name: Use Node.js
11-
uses: actions/setup-node@v4
11+
uses: actions/setup-node@v5
1212
with:
13-
node-version: '22.x'
13+
node-version: '24.x'
1414
- run: npm install
1515
- run: npm run build --if-present
1616
- run: npm test

.github/workflows/publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ jobs:
1212
publish-npm:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v5
1717
with:
18-
node-version: 22
18+
node-version: 24
1919
registry-url: https://registry.npmjs.org/
2020
cache: npm
2121
- run: npm ci
2222
- run: npm test
2323
- run: npm version ${TAG_NAME} --git-tag-version=false
2424
env:
2525
TAG_NAME: ${{ github.event.release.tag_name }}
26-
- run: npm whoami; npm --ignore-scripts publish --provenance
27-
env:
28-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26+
- run: npm --ignore-scripts publish --provenance

0 commit comments

Comments
 (0)