Skip to content

Commit 93c4291

Browse files
ci(github): add .nvmrc and update build.yml and commitlint.yml
1 parent 934e56d commit 93c4291

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ jobs:
88
- name: Checkout repository
99
uses: actions/checkout@v4
1010

11+
- name: Use Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
cache: npm
15+
node-version-file: .nvmrc
16+
1117
- name: Install dependencies
1218
run: npm ci --prefer-offline
1319

.github/workflows/commitlint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ jobs:
1010
with:
1111
fetch-depth: 0
1212

13+
- name: Use Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
cache: npm
17+
node-version-file: .nvmrc
18+
1319
- name: Install dependencies
1420
run: npm ci --prefer-offline
1521

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)