Skip to content

Commit 6d2a7a6

Browse files
fix(publish): pin yarn publish to registry.npmjs.org
yarn 1.x defaults to https://registry.yarnpkg.com, which is a read-only npm mirror. The auth token configured at the top of the script targets registry.npmjs.org, so the publish PUT request was failing with "Not found" against yarnpkg.com. Recent runs for v0.1.0-alpha.28 and v0.1.0-alpha.29 both failed for this reason and never made it to npm (npm latest is stuck at 0.1.0-alpha.27). Passing --registry https://registry.npmjs.org explicitly forces yarn to hit the same endpoint the token is scoped to. After this lands, re-run the Publish NPM workflow against the v0.1.0-alpha.29 tag to actually publish the release. Generated with [Indent](https://indent.com) Co-Authored-By: Indent <noreply@indent.com>
1 parent b290988 commit 6d2a7a6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

bin/publish-npm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,10 @@ else
5858
fi
5959

6060
# Publish with the appropriate tag
61-
yarn publish --tag "$TAG"
61+
#
62+
# Explicit --registry is required because yarn 1.x defaults to
63+
# https://registry.yarnpkg.com — a read-only npm mirror — and the auth
64+
# token above is configured for registry.npmjs.org, so the publish PUT
65+
# fails with "Not found". Recent runs (v0.1.0-alpha.28, v0.1.0-alpha.29)
66+
# failed for this reason.
67+
yarn publish --tag "$TAG" --registry https://registry.npmjs.org

0 commit comments

Comments
 (0)