File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 steps :
1010 - uses : actions/checkout@v3
11+
1112 - uses : actions/setup-node@v3
1213 with :
1314 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+
1528 - run : yarn test
29+
1630 - run : yarn build
31+
1732 - run : yarn semantic-release
1833 env :
1934 GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 1- export default {
1+ module . exports = {
22 branches : [ 'main' ] ,
33} ;
You can’t perform that action at this time.
0 commit comments