Skip to content

ci: fix broken actions - #1852

Closed
jannik-stacks wants to merge 5 commits into
mainfrom
ci/fix-actions
Closed

ci: fix broken actions#1852
jannik-stacks wants to merge 5 commits into
mainfrom
ci/fix-actions

Conversation

@jannik-stacks

Copy link
Copy Markdown
Collaborator

Fix CI workflows broken since #1809 (org migration).

  • publish-beta: Add missing npm run build step (dropped when publish-beta.yml was merged into publish.yml)
  • version: Add write permissions for GITHUB_TOKEN fallback (403 on push since GH_TOKEN secret wasn't migrated to new org)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes two critical CI workflow issues introduced by PR #1809 (the org migration with trusted publisher setup):

  1. Missing build step in publish-beta job: The npm run build command was accidentally dropped from the publish-beta workflow when publish-beta.yml was merged into publish.yml. This would cause the publish-beta job to fail since packages weren't being built before publishing.

  2. Missing write permissions in version workflow: The version.yml workflow was missing contents: write and pull-requests: write permissions needed for the janniks/changesets-action to function as a fallback when the GH_TOKEN secret wasn't migrated to the new organization. The workflow uses secrets.GH_TOKEN || secrets.GITHUB_TOKEN, so write permissions on GITHUB_TOKEN are required.

Changes:

  • Added missing npm run build step to the publish-beta job in publish.yml
  • Added required permissions block (contents: write and pull-requests: write) to version.yml

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/version.yml Added write permissions for GITHUB_TOKEN fallback to enable PR creation and commits
.github/workflows/publish.yml Added missing npm run build step to publish-beta job

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jannik-stacks
jannik-stacks requested a review from a team May 18, 2026 15:57
@jannik-stacks

Copy link
Copy Markdown
Collaborator Author

closed by #1863

@jannik-stacks
jannik-stacks deleted the ci/fix-actions branch May 20, 2026 16:46
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.

4 participants