Skip to content

fix(ci): sync publish state and grant contents write for beachball publish#375

Merged
frantic1048 merged 2 commits intomainfrom
fix/sync-beachball-publish-state
Mar 20, 2026
Merged

fix(ci): sync publish state and grant contents write for beachball publish#375
frantic1048 merged 2 commits intomainfrom
fix/sync-beachball-publish-state

Conversation

@frantic1048
Copy link
Contributor

@frantic1048 frantic1048 commented Mar 20, 2026

Summary

  • Syncs package.json version to match npm (0.5.2 → 0.6.0) using beachball sync
  • Deletes 25 consumed changefiles that were included in npm publishes but not cleaned up due to beachball's post-publish git commit failing (two failed publishes: 0.5.3 on 2025-11-19 and 0.6.0 on 2026-03-13)
  • Keeps 2 remaining changefiles (1 patch + 1 none) for the next publish cycle
  • Fixes contents: readcontents: write in the build job permissions so beachball can push its version bump commit after publishing

Context

Beachball's publish workflow: (1) bump version, (2) publish to npm, (3) commit version/CHANGELOG/changefile cleanup to git. Step 3 failed because adding id-token: write for OIDC npm publishing caused contents to drop from the default write to read, breaking git push.

Test plan

  • CI passes (beachball check should pass since remaining changefiles exist)
  • After merge, the Publish (main) CI job should succeed — publish next version from remaining changefile, then push the commit back

🤖 Generated with Claude Code

frantic1048 and others added 2 commits March 20, 2026 15:25
…ilure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When `id-token: write` was added for trusted npm publishing (OIDC),
specifying `permissions` at the job level overrides all defaults.
`contents` dropped from `write` to `read`, breaking beachball's
`git push` after publish.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@frantic1048 frantic1048 changed the title chore(release): sync publish state after partial beachball publish failure fix(ci): sync publish state and grant contents write for beachball publish Mar 20, 2026
@frantic1048 frantic1048 added the ci Work that improves the continuous integration. label Mar 20, 2026
@frantic1048 frantic1048 merged commit 73a813c into main Mar 20, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Work that improves the continuous integration.

Development

Successfully merging this pull request may close these issues.

1 participant