File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,14 @@ jobs:
4646 git config user.email "github-actions[bot]@users.noreply.github.com"
4747 npm version ${{ inputs.version }}
4848
49+ # https://docs.npmjs.com/trusted-publishers
4950 - name : Publish to npm
50- run : npm publish --provenance --access public
51- env :
52- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51+ run : npm publish
5352
5453 - name : Push commit and tag
5554 run : git push origin main --follow-tags
5655
5756 - name : Create GitHub Release
58- uses : actions/ create-release@v1
57+ run : gh release create v${{ inputs.version }} --title "v${{ inputs.version }}" --generate-notes
5958 env :
60- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61- with :
62- tag_name : v${{ inputs.version }}
63- release_name : v${{ inputs.version }}
59+ GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments