Skip to content

Commit a5f32fe

Browse files
author
iexitdev
committed
ci(release): relax npm scope list preflight
1 parent 13df7ac commit a5f32fe

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ jobs:
5454
5555
echo "Authenticated to npm as ${NPM_USER}."
5656
57-
if ! npm access list packages @chart-kit --json >/dev/null; then
58-
echo "NPM_TOKEN cannot access the @chart-kit npm scope."
59-
echo "Create or claim the @chart-kit scope and grant this token publish rights before rerunning."
60-
exit 1
57+
if npm access list packages @chart-kit --json >/dev/null; then
58+
echo "NPM_TOKEN can list packages in the @chart-kit npm scope."
59+
else
60+
echo "::warning::NPM_TOKEN authenticated, but npm refused the @chart-kit package-list preflight."
61+
echo "::warning::Granular npm tokens can be allowed to publish while still being denied org package listing."
62+
echo "::warning::Continuing; npm publish remains the authoritative write-permission check."
6163
fi
6264
env:
6365
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)