File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1818 default : ' main'
1919
2020permissions :
21+ # Needed for pushing git tags during release
22+ contents : write
23+ # Kept for npm provenance/OIDC if used
2124 id-token : write
2225
2326jobs :
3235 with :
3336 fetch-depth : 25
3437 ref : ${{ github.event.inputs.branch }}
38+ # Use repo-scoped token so pushing tags always works
39+ token : ${{ secrets.REPO_SCOPED_TOKEN }}
3540
3641 # Use corepack to install pnpm
3742 - name : Setup Pnpm
7277 return 'v' + packageJson.version;
7378
7479 - name : Publish to npm
80+ env :
81+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
7582 run : |
7683 git tag ${{ steps.version_to_release.outputs.result }}
7784 git push origin ${{ steps.version_to_release.outputs.result }}
78- pnpm -r publish --tag ${{ github.event.inputs.npm_tag }} --publish-branch ${{ github.event.inputs.branch }}
85+ pnpm -r publish --tag ${{ github.event.inputs.version }} --publish-branch ${{ github.event.inputs.branch }}
You can’t perform that action at this time.
0 commit comments