Skip to content

Commit a2acb37

Browse files
committed
chore: use newer node & npm versions
1 parent be76688 commit a2acb37

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939

40-
- name: Install node 18
40+
- name: Install node 20
4141
uses: actions/setup-node@v4
4242
with:
43-
node-version: 18
43+
node-version: 20
4444
cache: npm
4545
registry-url: 'https://registry.npmjs.org'
4646

47+
- name: Update npm
48+
run: npm install -g npm@11.5.1
49+
4750
- name: Configure git
4851
run: |
4952
git config user.name "${{ github.actor }}"

.github/workflows/stage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,16 @@ jobs:
3535
with:
3636
fetch-depth: 0
3737

38-
- name: Install node 18
38+
- name: Install node 20
3939
uses: actions/setup-node@v4
4040
with:
41-
node-version: 18
41+
node-version: 20
4242
cache: npm
4343
registry-url: 'https://registry.npmjs.org'
4444

45+
- name: Update npm
46+
run: npm install -g npm@11.5.1
47+
4548
- name: Enable Corepack
4649
run: corepack enable
4750

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"vulnerability"
1616
],
1717
"engines": {
18-
"node": ">= 18.0.0",
19-
"npm": ">= 9.0.0"
18+
"node": ">= 20.0.0",
19+
"npm": ">= 11.5.1"
2020
},
2121
"type": "module",
2222
"bin": "dist/src/cli.js",

0 commit comments

Comments
 (0)