Skip to content

Commit 613b91a

Browse files
authored
Merge pull request #20 from github/gracepark-actions-maintenance
Upgrade node to 22 and add provenance
2 parents 3cbbeef + 1cef1bc commit 613b91a

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: Node.js CI
22
on: [push]
3+
permissions:
4+
contents: read
35
jobs:
46
build:
57
runs-on: ubuntu-latest
68
steps:
79
- uses: actions/checkout@v4
810
- name: Use Node.js
9-
uses: actions/setup-node@v3
11+
uses: actions/setup-node@v4
1012
with:
11-
node-version: '18.x'
13+
node-version: '22.x'
1214
- run: npm install
1315
- run: npm run build --if-present
1416
- run: npm test

.github/workflows/publish.yml

Lines changed: 8 additions & 4 deletions
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:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1317
with:
14-
node-version: 14
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)