File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*.*.*'
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Check out repository
14+ uses : actions/checkout@v3
15+
16+ - name : Install Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : ' 16'
20+ registry-url : ' https://registry.npmjs.org'
21+
22+ - name : Update NPM to latest
23+ run : npm install npm@latest -g
24+
25+ - name : Print Node.js and NPM version
26+ run : |
27+ node -v
28+ npm -v
29+
30+ - name : Install dependencies
31+ run : npm ci
32+
33+ - name : Build package
34+ run : npm run build
35+
36+ - name : NPM whoami
37+ run : npm whoami
38+ env :
39+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
40+
41+ - name : Publish package
42+ run : npm publish --dry-run
43+ env :
44+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments