File tree Expand file tree Collapse file tree 2 files changed +36
-26
lines changed Expand file tree Collapse file tree 2 files changed +36
-26
lines changed Original file line number Diff line number Diff line change
1
+ # GitHub Actions docs
2
+ # https://help.github.com/en/articles/about-github-actions
3
+ # https://help.github.com/en/articles/workflow-syntax-for-github-actions
4
+ name : CI
5
+
6
+ on : [push]
7
+
8
+ jobs :
9
+ build :
10
+ # Machine environment:
11
+ # https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts
12
+ # We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
13
+ runs-on : ubuntu-18.04
14
+
15
+ steps :
16
+ - uses : actions/checkout@v1
17
+ - name : Use Node.js 16.14.2
18
+ uses : actions/setup-node@v1
19
+ with :
20
+ node-version : 16.14.2
21
+ - name : Install dependencies
22
+ run : yarn --frozen-lockfile --non-interactive --no-progress
23
+ - name : Format check
24
+ run : yarn prettier:check
25
+ - name : Build Lib
26
+ run : yarn build
27
+ - name : Test Lib
28
+ run : yarn test
29
+ - name : Check Readme
30
+ run : yarn readme:check
31
+ - name : Release
32
+ if : contains('refs/heads/master', github.ref)
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
36
+ run : npx semantic-release
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments