Skip to content

Commit 685db08

Browse files
authored
Merge pull request #66 from github/dg/maintenance-updates
Actions/Node Updates
2 parents a84376c + d801a83 commit 685db08

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

.github/workflows/nodejs.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: Node CI
22

33
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
48
jobs:
59
build:
610
runs-on: ubuntu-latest
711
steps:
8-
- uses: actions/checkout@v3
9-
- uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1014
with:
11-
node-version: 18
15+
node-version: 22
1216
registry-url: https://registry.npmjs.org/
1317
cache: npm
1418
- run: npm ci

.github/workflows/publish.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12+
id-token: write
1213
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1516
with:
16-
node-version: 18
17+
node-version: 22
1718
registry-url: https://registry.npmjs.org/
1819
cache: npm
1920
- run: npm ci
2021
- run: npm test
2122
- run: npm version ${TAG_NAME} --git-tag-version=false
2223
env:
2324
TAG_NAME: ${{ github.event.release.tag_name }}
24-
- run: npm whoami; npm --ignore-scripts publish
25+
- run: npm whoami; npm --ignore-scripts publish --provenance
2526
env:
2627
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package-lock.json

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

0 commit comments

Comments
 (0)