File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Build"
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
7+ pull_request :
8+ branches :
9+ - ' master'
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v3
17+
18+ - name : Setup node
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : 16
22+ cache : ' yarn'
23+
24+ - name : Install dependencies
25+ run : yarn install --frozen-lockfile
26+
27+ - name : Build
28+ run : yarn build
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ tags :
6+ - v**
7+ types :
8+ - published
9+
10+ jobs :
11+ publish :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+
17+ - name : Setup node
18+ uses : actions/setup-node@v3
19+ with :
20+ node-version : 16
21+ cache : ' yarn'
22+ registry-url : ' https://registry.npmjs.org'
23+
24+ - name : Install dependencies
25+ run : yarn install --frozen-lockfile
26+
27+ - name : Publish
28+ run : yarn publish
29+ env :
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments