ci: 更新ci.yml中的node版本

This commit is contained in:
xugaoyi 2021-01-12 19:11:11 +08:00
parent c1d1fdbb2b
commit 50a3e159c3
1 changed files with 5 additions and 5 deletions

View File

@ -3,20 +3,20 @@ name: CI
#on: [push]
# 在master分支发生push事件时触发。
on:
on:
push:
branches:
- master
jobs: # 工作流
build: # 自定义名称
runs-on: ubuntu-latest #运行在虚拟机环境ubuntu-latest
runs-on: ubuntu-latest # 运行在虚拟机环境ubuntu-latest
strategy:
matrix:
node-version: [10.x]
node-version: [12.x]
steps: # 步骤
steps:
- name: Checkout # 步骤1
uses: actions/checkout@v1 # 使用的动作。格式userName/repoName。作用检出仓库获取源码。 官方actions库https://github.com/actions
- name: Use Node.js ${{ matrix.node-version }} # 步骤2
@ -36,4 +36,4 @@ jobs: # 工作流
# BASE_BRANCH: master # 要部署的文件夹所在的分支.
# BRANCH: gh-pages # 部署到的分支
# FOLDER: docs/.vuepress/dist # 要部署的文件夹.
# BUILD_SCRIPT: npm install && npm run build && cd docs/.vuepress/dist && echo 'xugaoyi.com' > CNAME && cd - # 部署前要执行的命令记得cd进入某个目录后后面要cd -退回开始的目录)
# BUILD_SCRIPT: npm install && npm run build && cd docs/.vuepress/dist && echo 'xugaoyi.com' > CNAME && cd - # 部署前要执行的命令记得cd进入某个目录后后面要cd -退回开始的目录)