Conversation
|
0566b3c to
7f960b1
Compare
7f960b1 to
66255d5
Compare
66255d5 to
1e7868b
Compare
1e7868b to
4116181
Compare
There was a problem hiding this comment.
Devin Review found 1 new potential issue.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| - name: Create Release Pull Request or Publish to npm | ||
| id: changesets | ||
| uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 | ||
| uses: changesets/action@198f833dd7d863100ea6e28967bc9a9fdefadb0a # v2.1.0 |
There was a problem hiding this comment.
🔴 Release workflow fails before publishing
Every release run using changesets/action v2.1.0 rejects the installed Changesets CLI v2.29.8. The legacy version and publish inputs also fail v2 validation.
Learn more
Changesets Action v2 requires Changesets CLI v3 and validates that requirement before selecting release mode. This repository declares @changesets/cli 2.29.8 in package dependencies, so each run exits before creating a version pull request or publishing. After upgrading the CLI, the action still rejects the old workflow input names because v2 renamed them to version-script and publish-script. The token configuration also needs migration to the github-token input if a custom token is intended; setting only GITHUB_TOKEN no longer configures v2.
Example: A push to main starts Release. Dependency installation provides Changesets CLI 2.29.8, then the action reports that CLI v2 is unsupported and publishes nothing.
Recommended fix: Either retain Changesets Action v1, or migrate the repository atomically to Changesets CLI v3. For v2, rename version to version-script and publish to publish-script, and pass any custom token through github-token. Verify that ci:publish preserves CHANGESETS_OUTPUT so the action can detect published packages.
Was this helpful? React with 👍 or 👎 to provide feedback.
Automated update by pinact.