Skip to content

Commit 5a350de

Browse files
authored
Merge pull request #32 from github/dg/maintenance
Actions/Node Updates
2 parents f7e5bc7 + 4320c1a commit 5a350de

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

.github/workflows/nodejs.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: Use Node.js 20.x
14-
uses: actions/setup-node@v2
15-
with:
16-
node-version: 20.x
17-
- name: npm install, build, and test
18-
run: |
19-
npm install
20-
npm run build --if-present
21-
npm test
22-
env:
23-
CI: true
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
- name: npm install, build, and test
17+
run: |
18+
npm install
19+
npm run build --if-present
20+
npm test
21+
env:
22+
CI: true

.github/workflows/publish.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ on:
66

77
permissions:
88
contents: read
9+
id-token: write
910

1011
jobs:
1112
publish-npm:
1213
runs-on: ubuntu-latest
1314
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1617
with:
17-
node-version: 20
18+
node-version: 22
1819
registry-url: https://registry.npmjs.org/
1920
cache: npm
2021
- run: npm ci
@@ -25,6 +26,6 @@ jobs:
2526
npm version ${TAG_NAME} --git-tag-version=false
2627
env:
2728
TAG_NAME: ${{github.event.release.tag_name}}
28-
- run: npm whoami; npm --ignore-scripts publish
29+
- run: npm whoami; npm --ignore-scripts publish --provenance
2930
env:
3031
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package-lock.json

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)