Skip to content

Commit 5ce5395

Browse files
Merge pull request #596 from A-kirami/ci/node-version-file
feat(ci): Retrieve the Node.js version from package.json
2 parents 4d6d69e + 757f44b commit 5ce5395

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/deploy-demo-page.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node.js environment
2020
uses: actions/setup-node@v3
2121
with:
22-
node-version: 16
22+
node-version-file: package.json
2323
cache: 'yarn'
2424

2525
# 安装依赖

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node.js environment
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 16
23+
node-version-file: package.json
2424
cache: 'yarn'
2525

2626
# 安装依赖

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@
2121
"packages/*"
2222
]
2323
},
24-
"private": true
24+
"private": true,
25+
"engines": {
26+
"node": "18"
27+
}
2528
}

0 commit comments

Comments
 (0)