This repository was archived by the owner on Nov 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +42
-42
lines changed Expand file tree Collapse file tree 2 files changed +42
-42
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ ci :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v2
18
+ - name : Read Node.js version to install from `.nvmrc`
19
+ run : echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
20
+ id : nvm
21
+ - name : Install required Node.js version
22
+ uses : actions/setup-node@v1
23
+ with :
24
+ node-version : " ${{ steps.nvm.outputs.NVMRC }}"
25
+ - name : Get Yarn cache directory path
26
+ id : yarn-cache
27
+ run : echo "::set-output name=dir::$(yarn cache dir)"
28
+ - name : Setup cache key and directory for node_modules cache
29
+ uses : actions/cache@v1
30
+ with :
31
+ path : ${{ steps.yarn-cache.outputs.dir }}
32
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33
+ - name : Yarn install
34
+ run : yarn --frozen-lockfile
35
+ - name : Test
36
+ run : yarn test
37
+ - name : Release
38
+ if : github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next')
39
+ run : yarn semantic-release
40
+ env :
41
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
42
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments