fix(ci): remove invalid --access flag from changeset:publish#71
Merged
Conversation
`changeset publish` does not accept `--access` (it only supports --tag, --otp, --no-git-tag), so the release workflow aborted on argument parsing before publishing. Public access is already configured via .changeset/config.json and the SDK package's publishConfig.access, so the flag was both invalid and redundant. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The release workflow (
changesets/action@v1) failed at the publish step:The root
changeset:publishscript passed--access publictochangeset publish. That flag belongs tonpm publish, notchangeset publish— so the command aborted on argument parsing before any package was published. (The SDK build itself succeeded; the failure was purely the bad flag.)Fix
Remove
--access publicfrom the script. Public access is already configured in two places, so the flag was both invalid and redundant:.changeset/config.json→"access": "public"sdk/package/package.json→"publishConfig": { "access": "public" }@changesets/cliresolves access aspublishConfig.access || config.accessand builds the--accessarg for the underlyingnpm publishitself, so removing it from the script changes nothing about the published access level.OIDC trusted publishing (
No NPM_TOKEN found, but OIDC is available) is unaffected — the run never reached the auth stage.Verification
changeset publish --helpconfirms only--tag,--otp,--no-git-tagare accepted.@sfpro/sdkpublicly.🤖 Generated with Claude Code