Skip to content

Commit 7ab497c

Browse files
authored
Update main.yml
1 parent 11bb135 commit 7ab497c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
build-and-deploy:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [12.x]
1013
steps:
1114

1215
# 下载源码
@@ -17,7 +20,9 @@ jobs:
1720

1821
# 打包构建
1922
- name: Build
20-
uses: actions/setup-node@master
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
2126
- run: npm install
2227
- run: npm run build
2328
- run: tar -zcvf release.tgz .nuxt server nuxt.config.js package.json

0 commit comments

Comments
 (0)