Skip to content

Commit d4e78a3

Browse files
authored
Merge pull request #42 from github/dg/maintenance
Actions/Node Maintenance
2 parents 50b7f17 + 908dbb1 commit d4e78a3

File tree

4 files changed

+40
-29
lines changed

4 files changed

+40
-29
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

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
name: Node.js CI
22
on: [push]
3+
4+
permissions:
5+
contents: read
6+
37
jobs:
48
build:
59
runs-on: ubuntu-latest
610
steps:
7-
- uses: actions/checkout@v2
8-
- name: Use Node.js
9-
uses: actions/setup-node@v1
10-
with:
11-
node-version: '14.x'
12-
- run: npm install
13-
- run: npm run build --if-present
14-
- run: npm test
15-
env:
16-
CI: true
11+
- uses: actions/checkout@v4
12+
- name: Use Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
cache: 'npm'
17+
- run: npm install
18+
- run: npm run build --if-present
19+
- run: npm test
20+
env:
21+
CI: true

.github/workflows/publish.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,27 @@ 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
permissions:
1115
contents: read
1216
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
1519
with:
16-
node-version: 14
20+
node-version: 22
1721
registry-url: https://registry.npmjs.org/
1822
cache: npm
1923
- run: npm ci
2024
- run: npm test
2125
- run: npm version ${TAG_NAME} --git-tag-version=false
2226
env:
2327
TAG_NAME: ${{ github.event.release.tag_name }}
24-
- run: npm whoami; npm --ignore-scripts publish
28+
- run: npm whoami; npm --ignore-scripts publish --provenance
2529
env:
2630
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package-lock.json

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

0 commit comments

Comments
 (0)