diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a6207c..5f3aeec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -159,7 +159,13 @@ jobs: npm whoami --registry https://registry.npmjs.org echo "" echo "=== Scope access (@predicate) ===" - npm access ls-packages @predicate --registry https://registry.npmjs.org + # npm v10 syntax: + # - `npm access list packages ` checks whether the user can see/publish packages in that scope + # - if you are not a member/owner of the npm org, this typically fails (403/404) which is what we want surfaced + npm access list packages @predicate --registry https://registry.npmjs.org --json + echo "" + echo "=== Sanity: packages visible to current user ===" + npm access list packages "$(npm whoami --registry https://registry.npmjs.org)" --registry https://registry.npmjs.org --json - name: Publish to npm run: |