File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish package to npmjs
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ publish :
10+ name : Publish package to npmjs
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ id-token : write
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v2
21+ with :
22+ node-version : ' 20'
23+ registry-url : ' https://registry.npmjs.org'
24+
25+ - name : Install dependencies
26+ run : npm ci
27+
28+ - name : Build package
29+ run : npm run build
30+
31+ - name : Publish to npm
32+ run : npm publish --provenance --access public
33+ env :
34+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
35+
36+ - name : Create Release
37+ id : create_release
38+ uses : actions/create-release@v1
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ with :
42+ tag_name : ${{ github.ref }}
43+ release_name : Release ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments