Skip to content

Commit 5c6e9ae

Browse files
authored
Merge pull request #100 from github/gracepark-actions-maintenance
Upgrade node to 22 and add provenance
2 parents af28540 + 5ce0522 commit 5c6e9ae

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
88
// Append -bullseye or -buster to pin to an OS version.
99
// Use -bullseye variants on local arm64/Apple Silicon.
10-
"args": { "VARIANT": "16" }
10+
"args": { "VARIANT": "22" }
1111
},
1212

1313
// Set *default* container specific settings.json values on container create.

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
55
build:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
9-
- name: Use Node.js 18.x
10-
uses: actions/setup-node@v1
8+
- uses: actions/checkout@v4
9+
- name: Use Node.js
10+
uses: actions/setup-node@v4
1111
with:
12-
node-version: 18.x
12+
node-version: 22.x
1313
- name: npm install, build, and test
1414
run: |
1515
npm install

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
710
jobs:
811
publish-npm:
912
runs-on: ubuntu-latest
1013
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 18
17+
node-version: 22
1518
registry-url: https://registry.npmjs.org/
1619
cache: npm
1720
- run: npm ci
1821
- run: npm test
1922
- run: npm version ${TAG_NAME} --git-tag-version=false
2023
env:
2124
TAG_NAME: ${{ github.event.release.tag_name }}
22-
- run: npm whoami; npm --ignore-scripts publish
25+
- run: npm whoami; npm --ignore-scripts publish --provenance
2326
env:
2427
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)