Skip to content

Commit 5b1550e

Browse files
committed
修改github自动化测试脚本-升级node到20
1 parent 65b6d60 commit 5b1550e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
- name: Use Node.js
99
uses: actions/setup-node@v1
1010
with:
11-
node-version: '18.x'
12-
- run: npm install
13-
- run: npm run unit
11+
node-version: '20.x'
12+
- run: pnpm install
13+
- run: pnpm run coverage
1414
- name: Coveralls
1515
uses: coverallsapp/github-action@master
1616
with:
@@ -23,9 +23,9 @@ jobs:
2323
- name: Use Node.js
2424
uses: actions/setup-node@v1
2525
with:
26-
node-version: '18.x'
27-
- run: npm install
28-
- run: npm run build
26+
node-version: '20.x'
27+
- run: pnpm install
28+
- run: pnpm run build
2929
- uses: actions/upload-artifact@v2
3030
with:
3131
name: my-artifact
@@ -39,7 +39,7 @@ jobs:
3939
- name: Use Node.js
4040
uses: actions/setup-node@v1
4141
with:
42-
node-version: '18.x'
42+
node-version: '20.x'
4343
- uses: actions/download-artifact@v2
4444
with:
4545
name: my-artifact

0 commit comments

Comments
 (0)