Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit 7ac3827

Browse files
committed
build: set up node in CI
1 parent d6bc57d commit 7ac3827

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/pr.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v3
1818

19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version-file: "package.json"
23+
cache: "npm"
24+
1925
- name: Install dependencies
20-
run: npm ci
26+
run: npm --no-update-notifier --no-fund --no-audit ci
2127

2228
- name: Lint
2329
run: npm run lint

.github/workflows/release.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717

18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version-file: "package.json"
22+
cache: "npm"
23+
1824
- name: Install dependencies
19-
run: npm ci
25+
run: npm --no-update-notifier --no-fund --no-audit ci
2026

2127
- name: Lint
2228
run: npm run lint

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"node": ">=14"
7272
},
7373
"volta": {
74-
"node": "18.9.1",
75-
"npm": "8.19.2"
74+
"node": "19.6.0",
75+
"npm": "9.4.1"
7676
}
7777
}

0 commit comments

Comments
 (0)