File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v3
11
+
11
12
- uses : actions/setup-node@v3
12
13
with :
13
14
node-version : 16
14
- - run : yarn install
15
+
16
+ - name : Get yarn cache directory path
17
+ id : yarn-cache-dir-path
18
+ run : echo "::set-output name=dir::$(yarn cache dir)"
19
+
20
+ - uses : actions/cache@v3
21
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22
+ with :
23
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
24
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-yarn-
27
+
15
28
- run : yarn test
29
+
16
30
- run : yarn build
31
+
17
32
- run : yarn semantic-release
18
33
env :
19
34
GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 1
- export default {
1
+ module . exports = {
2
2
branches : [ 'main' ] ,
3
3
} ;
You can’t perform that action at this time.
0 commit comments