-
Notifications
You must be signed in to change notification settings - Fork 36
33 lines (33 loc) · 891 Bytes
/
dev.yml
File metadata and controls
33 lines (33 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: validate npm build script
on:
push:
branches:
- dev
- master
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# action命令,切换分支获取源码
- name: Checkout
# 使用action库 actions/checkout获取源码
uses: actions/checkout@master
# action命令,安装Node10
- name: use Node.js 10
# 使用action库 actions/setup-node安装node
uses: actions/setup-node@v1
with:
node-version: 10
# action命令,install && build
- name: bootstrap and build
# 运行的命令或者 action
run: |
npm install lerna@3.20.2 -g
lerna bootstrap --registry http://r.cnpmjs.org/ --ignore-scripts
npm run build
npm run test
# 环境变量
env:
CI: true