File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8- permissions :
9- id-token : write
10- pull-requests : write
11- contents : write
12-
138env :
149 BUN_NPM_TOKEN : ${{ secrets.NPM_TOKEN_READONLY }}
1510
1914 publish :
2015 name : Publish
2116 runs-on : ubuntu-latest
17+ permissions :
18+ id-token : write
19+ pull-requests : write
20+ contents : write
2221 steps :
2322 - name : Checkout Repo
2423 uses : actions/checkout@v3
5049 - name : Publish to NPM
5150 if : steps.changesets.outputs.hasChangesets == 'false'
5251 run : bun run publish-all-packages
53- env :
54- GITHUB_TOKEN : ${{ github.token }}
55- NODE_AUTH_TOKEN : ${{ env.NODE_AUTH_TOKEN }}
56- NPM_CONFIG_USERCONFIG : ${{ env.NPM_CONFIG_USERCONFIG }}
Original file line number Diff line number Diff line change 88
99set -euo pipefail
1010
11+ echo " Node auth token: ${NODE_AUTH_TOKEN} "
12+ echo " NPM config userconfig: ${NPM_CONFIG_USERCONFIG} "
13+
1114NAME=$( node -p " require('./package.json').name" )
1215VERSION=$( node -p " require('./package.json').version" )
1316
3740# Clean up the tarball
3841trap ' rm -f "${TARBALL_PATH}"' EXIT
3942
40- npm publish " ${TARBALL_PATH} " --no-workspaces --provenance
43+ # Publish with verbose logging to aid debugging
44+ npm publish " ${TARBALL_PATH} " --no-workspaces --provenance --loglevel=verbose
Original file line number Diff line number Diff line change 5757 "publish-to-npm" : {
5858 "dependsOn" : [" build" ],
5959 "cache" : false ,
60- "env" : [" NODE_AUTH_TOKEN" , " NPM_CONFIG_USERCONFIG" ]
60+ "env" : [" NODE_AUTH_TOKEN" , " NPM_CONFIG_USERCONFIG" , " ACTIONS_ID_TOKEN_* " ]
6161 },
6262 // Clean up the package
6363 "clean" : {
You can’t perform that action at this time.
0 commit comments