Skip to content

Commit 7b7b21f

Browse files
authored
chore: use newer node & npm versions (#267)
1 parent b427266 commit 7b7b21f

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.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
@@ -36,13 +36,16 @@ jobs:
3636
with:
3737
fetch-depth: 0
3838

39-
- name: Install node 18
39+
- name: Install node 20
4040
uses: actions/setup-node@v4
4141
with:
42-
node-version: 18
42+
node-version: 20
4343
cache: npm
4444
registry-url: 'https://registry.npmjs.org'
4545

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

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)