File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+ name : Release Package
5+
6+ on :
7+ push :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v2
16+ - uses : actions/setup-node@v1
17+ with :
18+ node-version : 12
19+ - name : Get yarn cache directory path
20+ id : yarn-cache-dir-path
21+ run : echo "::set-output name=dir::$(yarn cache dir)"
22+ - uses : actions/cache@v1
23+ id : yarn-cache
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+ - run : yarn
30+ - run : yarn test
31+ - run : npx semantic-release
You can’t perform that action at this time.
0 commit comments