File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ jobs :
8+ release :
9+ name : Release
10+ runs-on : ubuntu-latest
11+ env :
12+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v2
16+ with :
17+ persist-credentials : false
18+
19+ - name : Install Node.js and npm
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : 14.x
23+ registry-url : https://registry.npmjs.org
24+
25+ - name : Retrieve dependencies from cache
26+ id : cacheNpm
27+ uses : actions/cache@v2
28+ with :
29+ path : |
30+ ~/.npm
31+ node_modules
32+ key : npm-v14-${{ runner.os }}-refs/heads/master-${{ hashFiles('package.json') }}
33+ restore-keys : npm-v14-${{ runner.os }}-refs/heads/master-
34+
35+ - name : Install dependencies
36+ if : steps.cacheNpm.outputs.cache-hit != 'true'
37+ run : |
38+ npm update --no-save
39+ npm update --save-dev --no-save
40+ - name : Releasing
41+ run : |
42+ npm run build
43+ npm run release
44+ env :
45+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
46+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
47+ GIT_AUTHOR_NAME : slsplus
48+ GIT_AUTHOR_EMAIL : slsplus.sz@gmail.com
49+ GIT_COMMITTER_NAME : slsplus
50+ GIT_COMMITTER_EMAIL : slsplus.sz@gmail.com
You can’t perform that action at this time.
0 commit comments