File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - master
77
8+ permissions :
9+ contents : write
10+
811jobs :
912 publish-npm :
1013 runs-on : ubuntu-latest
1316 # Checkout the repository
1417 - name : Checkout repository
1518 uses : actions/checkout@v3
19+ with :
20+ token : ${{ secrets.HUB_TOKEN }}
1621
1722 # Set up Node.js environment
1823 - name : Set up Node.js
4651 - name : Run tests
4752 run : npm test
4853
49- # Publish to npm
50- - name : Publish to npm
51- env :
52- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
53- run : npm publish
54-
5554 # Create Git tag
5655 - name : Create Git tag
5756 run : |
6463 - name : Create GitHub Release
6564 uses : actions/create-release@v1
6665 env :
67- HUB_TOKEN : ${{ secrets.HUB_TOKEN }}
66+ GITHUB_TOKEN : ${{ secrets.HUB_TOKEN }}
6867 with :
6968 tag_name : ${{ env.VERSION }}
7069 release_name : Release ${{ env.VERSION }}
7170 draft : false
72- prerelease : true
71+ prerelease : true
72+
73+ # Publish to npm
74+ - name : Publish to npm
75+ env :
76+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
77+ run : npm publish
You can’t perform that action at this time.
0 commit comments