Skip to content

fix(ci): stop publishing the vendored packages, and let canary idle - #5

Merged
upupming merged 1 commit into
mainfrom
fix/release-scope
Aug 25, 2026
Merged

upupming merged 1 commit into
mainfrom
fix/release-scope

Conversation

@upupming

Copy link
Copy Markdown
Contributor

Both jobs failed on the push that merged the release PR (run), and @react-navigation/lynx@0.1.0 was never published as a result.

version — we tried to publish someone else's package

These packages will be published as they were not found in the registry:
  lynx-screens@0.1.0
  @react-navigation/lynx@0.1.0
Some packages failed to publish:
  lynx-screens@0.1.0
  └ E404: 404 Not Found - PUT https://registry.npmjs.org/lynx-screens

changeset publish publishes every non-private workspace package whose version isn't on the registry. The submodules are workspace members, so lynx-screens@0.1.0 — Software Mansion's package, which we have no rights to — was a candidate. The 404 took the whole command down with it, and 0.1.0 of our own package never went out.

@react-navigation/core and @react-navigation/routers escaped only because their versions happen to already exist on npm. That is luck, not safety: we do hold publish rights in the @react-navigation scope, so a submodule bump to an unpublished version could have put upstream's source out under their name.

Adding them to ignore doesn't work — changesets refuses the tree:

Invalid tree: "@react-navigation/lynx" depends on the skipped package "lynx-screens",
but "@react-navigation/lynx" is not skipped.

So the publish moves out of changeset publish and into a filtered pnpm publish, which only ever sees ./packages/*. Verified it is safe to run unconditionally: on an already-published version it prints There are no new packages that should be published and exits 0.

Trade-off: changesets/action no longer runs a publish script, so it stops creating git tags and GitHub releases. Worth adding back separately — changeset tag has the same ignore problem, so it needs its own filter.

canary — no changesets is not an error

No unreleased changesets found.
🦋 Exited with code 1

changeset version --snapshot exits 1 rather than doing nothing, so every push after a release PR merges would fail until someone adds a changeset. It now checks changeset status first and idles, the same guard lynx-stack uses. Tested both ways locally: empty releases skips, a pending changeset resolves to @react-navigation/lynx@0.1.1.

`changeset publish` publishes every workspace package whose version is not on
the registry, and the submodules are workspace members. It tried to push
lynx-screens@0.1.0 - Software Mansion's package, which we have no rights to -
and the 404 took @react-navigation/lynx@0.1.0 down with it, so the first real
release never happened.

Adding them to `ignore` does not work: changesets rejects a tree where a
released package depends on a skipped one, which @react-navigation/lynx does
twice. Publishing through pnpm with a path filter never considers them in the
first place, and it already skips versions that exist, so it is safe to run on
every push. The cost is that git tags and GitHub releases are no longer created.

The canary job failed separately: with the release PR merged there were no
changesets left, and `changeset version --snapshot` exits 1 rather than doing
nothing. It now checks first and idles.
@changeset-bot

changeset-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2d82c46

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@upupming
upupming merged commit e1335eb into main Aug 25, 2026
5 checks passed
@upupming
upupming deleted the fix/release-scope branch August 25, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant