Skip to content

fix(ci): remove invalid --access flag from changeset:publish#71

Merged
kasparkallas merged 1 commit into
mainfrom
fix/changeset-publish-access-flag
Jun 8, 2026
Merged

fix(ci): remove invalid --access flag from changeset:publish#71
kasparkallas merged 1 commit into
mainfrom
fix/changeset-publish-access-flag

Conversation

@kasparkallas

Copy link
Copy Markdown
Collaborator

Problem

The release workflow (changesets/action@v1) failed at the publish step:

🦋  error Unknown flag for publish: --access
🦋  error Usage: changeset publish [--tag <name>] [--otp <code>] [--no-git-tag]
 ELIFECYCLE  Command failed with exit code 1.

The root changeset:publish script passed --access public to changeset publish. That flag belongs to npm publish, not changeset 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 public from 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/cli resolves access as publishConfig.access || config.access and builds the --access arg for the underlying npm publish itself, 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 --help confirms only --tag, --otp, --no-git-tag are accepted.
  • Re-run the release workflow; the publish step should now reach OIDC trusted-publishing auth and publish @sfpro/sdk publicly.

🤖 Generated with Claude Code

`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>
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
superfluid-cms Ready Ready Preview, Comment Jun 8, 2026 1:21pm
superfluid-data Ready Ready Preview, Comment Jun 8, 2026 1:21pm
superfluid-pro-website Ready Ready Preview, Comment Jun 8, 2026 1:21pm

Request Review

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