Skip to content

Commit abbe946

Browse files
authored
Actions/Node Updates (#558)
* Use node 22 in devcontainer * Use node 22 in actions * Publish with provenance
1 parent 9741340 commit abbe946

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.devcontainer/devcontainer.json

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18, 20]
15+
node-version: [20, 22]
1616

1717
steps:
1818
- uses: actions/checkout@v4

.github/workflows/publish.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
jobs:
812
publish-npm:
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v4
1216
- uses: actions/setup-node@v4
1317
with:
14-
node-version: 18
18+
node-version: 22
1519
registry-url: https://registry.npmjs.org/
1620
cache: npm
1721
- run: npm ci
1822
- run: npm test
1923
- run: npm version ${TAG_NAME} --git-tag-version=false
2024
env:
2125
TAG_NAME: ${{ github.event.release.tag_name }}
22-
- run: npm whoami; npm --ignore-scripts publish
26+
- run: npm whoami; npm --ignore-scripts publish --provenance
2327
env:
2428
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)