File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ release :
10
+ name : Release
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+
14
+ uses : actions/setup-node@v1
15
+ with :
16
+ node-version : 14.x
17
+
18
+ - name : Get yarn cache directory path
19
+ id : yarn-cache-dir-path
20
+ run : echo "::set-output name=dir::$(yarn cache dir)"
21
+
22
+ - uses : actions/cache@v2
23
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
24
+ with :
25
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
26
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-yarn-
29
+
30
+ - name : Install dependencies
31
+ run : yarn --frozen-lockfile
32
+
33
+ - name : Build
34
+ run : yarn build --if-present
35
+
36
+ - name : Release
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
40
+ run : yarn semantic-release
You can’t perform that action at this time.
0 commit comments