File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ name: Check NPM Publish Permissions
22
33on :
44 push :
5-
5+ env :
6+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
67jobs :
78 check-npm-permissions :
89 runs-on : ubuntu-latest
@@ -22,16 +23,13 @@ jobs:
2223
2324 - name : Check Publish Access
2425 env :
25- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
2626 PACKAGE_NAME : " @segment/analytics-signals"
2727 run : |
2828 echo "Checking permissions for package: $PACKAGE_NAME"
2929 curl -H "Authorization: Bearer $NPM_TOKEN" \
3030 https://registry.npmjs.org/-/package/$PACKAGE_NAME/access || echo "No access or invalid token"
3131
3232 - name : Dry-Run Publish
33- env :
34- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3533 run : |
3634 echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
3735 npm publish --dry-run || echo "Publish not allowed"
You can’t perform that action at this time.
0 commit comments