File tree Expand file tree Collapse file tree 2 files changed +420
-377
lines changed
Expand file tree Collapse file tree 2 files changed +420
-377
lines changed Original file line number Diff line number Diff line change 1+ name : 📦 Release
2+
3+ on :
4+ workflow_dispatch :
5+ release :
6+ types : [published]
7+
8+ jobs :
9+ release :
10+ name : Release
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : 🛎 Checkout
14+ uses : actions/checkout@v3
15+
16+ - name : ⬢ Use Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : 12.22.12
20+ registry-url : " https://npm.pkg.github.com"
21+
22+ # - name: 🔍 Get npm cache directory path
23+ # id: yarn-cache-dir-path
24+ # run: echo "::set-output name=dir::$(yarn cache dir)"
25+
26+ - name : 🧶 Get NPM cache
27+ uses : actions/cache@v2
28+ id : cache-npm # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
29+ with :
30+ path : ~/.npm
31+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
32+ restore-keys : |
33+ ${{ runner.os }}-build-${{ env.cache-name }}-
34+ ${{ runner.os }}-build-
35+ ${{ runner.os }}-
36+
37+ - name : 📦 Install dependencies
38+ run : npm install --frozen-lockfile
39+
40+ - name : 🚀 Publish release
41+ env :
42+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ run : npm publish --non-interactive
You can’t perform that action at this time.
0 commit comments