Skip to content

Commit ec9441f

Browse files
committed
wip
1 parent adec4ab commit ec9441f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/check-npm-token-permissions.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Check NPM Publish Permissions
22

33
on:
44
push:
5-
5+
env:
6+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67
jobs:
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"

0 commit comments

Comments
 (0)