ci: fix broken actions - #1852
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes two critical CI workflow issues introduced by PR #1809 (the org migration with trusted publisher setup):
-
Missing build step in publish-beta job: The
npm run buildcommand was accidentally dropped from thepublish-betaworkflow whenpublish-beta.ymlwas merged intopublish.yml. This would cause the publish-beta job to fail since packages weren't being built before publishing. -
Missing write permissions in version workflow: The
version.ymlworkflow was missingcontents: writeandpull-requests: writepermissions needed for thejanniks/changesets-actionto function as a fallback when theGH_TOKENsecret wasn't migrated to the new organization. The workflow usessecrets.GH_TOKEN || secrets.GITHUB_TOKEN, so write permissions onGITHUB_TOKENare required.
Changes:
- Added missing
npm run buildstep to thepublish-betajob inpublish.yml - Added required permissions block (
contents: writeandpull-requests: write) toversion.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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
closed by #1863 |
Fix CI workflows broken since #1809 (org migration).
npm run buildstep (dropped whenpublish-beta.ymlwas merged intopublish.yml)GITHUB_TOKENfallback (403 on push sinceGH_TOKENsecret wasn't migrated to new org)