-
Notifications
You must be signed in to change notification settings - Fork 345
Description
Problem
When all changeset files in .changeset/ only refer to packages listed in the ignore array of config.json, the Action still attempts to open version bump PRs, despite there being no valid changesets for non-ignored packages.
Expected behavior
No PR should be opened if all available changesets reference only ignored packages.
Actual behavior
The action creates PRs even when a local npx changeset status reports "NO packages to be bumped", and all changeset files are for only ignored packages. This is reproducible on v1.4.6 with recent @changesets/cli releases (v2.29.7).
Minimal Reproduction
- Create a monorepo with at least one ignored package (e.g., in
.changeset/config.json:"ignore": ["my-ignored-package"]). - Add a changeset targeting only the ignored package:
npx changeset add my-ignored-package minor
- Push the changes and let changesets/action run on CI.
- Observe that a PR is created for version bump, even though
npx changeset statuson the branch says there is nothing to bump.
Environment
- changesets/action: v1.4.6
- @changesets/cli: v2.29.7
- Node.js: 24.x
- config.json (relevant):
{ "ignore": ["my-ignored-package"], "baseBranch": "main", // or your release branch ... }
Analysis
It appears the bug is caused by the Action not filtering out changesets for ignored packages in readChangesetState.ts.
See: https://github.com/changesets/action/files/src/readChangesetState.ts
Expected solution: Filter changesets so only those referencing non-ignored packages cause PR creation.
Additional context
- Local workflow shows correct status; only CI (running action) gets this wrong.