File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,13 @@ jobs:
159159 npm whoami --registry https://registry.npmjs.org
160160 echo ""
161161 echo "=== Scope access (@predicate) ==="
162- npm access ls-packages @predicate --registry https://registry.npmjs.org
162+ # npm v10 syntax:
163+ # - `npm access list packages <scope>` checks whether the user can see/publish packages in that scope
164+ # - if you are not a member/owner of the npm org, this typically fails (403/404) which is what we want surfaced
165+ npm access list packages @predicate --registry https://registry.npmjs.org --json
166+ echo ""
167+ echo "=== Sanity: packages visible to current user ==="
168+ npm access list packages "$(npm whoami --registry https://registry.npmjs.org)" --registry https://registry.npmjs.org --json
163169
164170 - name : Publish to npm
165171 run : |
You can’t perform that action at this time.
0 commit comments