File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 18
18
node-version : ' 12.x'
19
19
- name : Install dependencies
20
20
run : npm install
21
- - name : Build
21
+ - name : Build library and test
22
22
run : npm test
23
23
env :
24
24
CI : true
Original file line number Diff line number Diff line change
1
+ name : Node.js CI
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Use Node.js
14
+ uses : actions/setup-node@v1
15
+ with :
16
+ node-version : ' 12.x'
17
+ - name : Install dependencies
18
+ run : npm install
19
+ - name : Build docs
20
+ run : npm run docs
21
+ - name : Deploy to GitHub Pages
22
+ if : success()
23
+ uses : crazy-max/ghaction-github-pages@v2
24
+ with :
25
+ target_branch : gh-pages
26
+ build_dir : docs
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments