File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*.*.*'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ id-token : write # Grant write access to id-token permission
13+
14+ env :
15+ NODE_VERSION : ' 20' # Directly set to your current Node.js version
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Set up Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : ${{ env.NODE_VERSION }} # Use the environment variable for the Node version
24+
25+ - name : Authenticate with npm
26+ run : npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
27+
28+ - name : Install dependencies
29+ run : npm install
30+
31+ - name : Publish to npm
32+ run : npm publish
33+ env :
34+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments