Skip to content

Commit 88201cf

Browse files
authored
Merge pull request #194 from Predicate-Labs/fix_release4
fix release 4
2 parents 8a84fe3 + 2377620 commit 88201cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)