File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 1- name : semantic release
1+ name : release
22
33on :
44 pull_request :
99 - master
1010
1111jobs :
12- release :
12+ semantic- release :
1313 runs-on : ubuntu-18.04
1414 steps :
1515 - uses : actions/checkout@v2
3838 env :
3939 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4040 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
41+ github-packages-release :
42+ needs : semantic-release
43+ steps :
44+ - uses : actions/checkout@v2
45+
46+ - name : Setup Node
47+ uses : actions/setup-node@v1
48+ with :
49+ node-version : ' 12.x'
50+
51+ - name : Cache dependencies
52+ uses : actions/cache@v2
53+ with :
54+ path : ~/.yarn
55+ key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
56+ restore-keys : |
57+ ${{ runner.os }}-node-
58+ - run : yarn install --frozen-lockfile
59+
60+ - run : yarn publish
61+ env :
62+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments