Skip to content

Commit 688eb7d

Browse files
authored
Merge pull request #25 from github/gracepark-actions-maintenance
Upgrade node to 22 and add provenance
2 parents 8ef2195 + 0bd3b28 commit 688eb7d

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@ on:
99
pull_request:
1010
branches: [ main ]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417

1518
runs-on: ubuntu-latest
1619

1720
strategy:
1821
matrix:
19-
node-version: [14.x, 15.x]
22+
node-version: [20.x, 22.x]
2023
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2124

2225
steps:
23-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
2427
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
28+
uses: actions/setup-node@v4
2629
with:
2730
node-version: ${{ matrix.node-version }}
2831
- run: npm ci

.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)