Skip to content

Commit e2a47fa

Browse files
committed
upgrade node to 22 and add provenance
1 parent 8ef2195 commit e2a47fa

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616

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

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
- run: npm ci

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
710
jobs:
811
publish-npm:
912
runs-on: ubuntu-latest
1013
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 14
17+
node-version: 22
1518
registry-url: https://registry.npmjs.org/
1619
cache: npm
1720
- run: npm ci
1821
- run: npm test
1922
- run: npm version ${TAG_NAME} --git-tag-version=false
2023
env:
2124
TAG_NAME: ${{ github.event.release.tag_name }}
22-
- run: npm whoami; npm --ignore-scripts publish
25+
- run: npm whoami; npm --ignore-scripts publish --provenance
2326
env:
2427
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)