Skip to content

fix(ci): unblock release git push + docs caching#186

Merged
GSTJ merged 3 commits into
mainfrom
fix/release-and-docs-followup
May 19, 2026
Merged

fix(ci): unblock release git push + docs caching#186
GSTJ merged 3 commits into
mainfrom
fix/release-and-docs-followup

Conversation

@GSTJ
Copy link
Copy Markdown
Owner

@GSTJ GSTJ commented May 19, 2026

Summary

Two post-7.0.1 ship issues, observed in CI runs after #179 merged:

  1. 🚀 Publish step succeeds with npm publish but release-it then fails pushing the version-bump commit + tag back to main: GH013: Repository rule violations found for refs/heads/main (GITHUB_TOKEN can't bypass branch protection). Switch the checkout to secrets.GH_PAT so release-it's git push goes through.

  2. 📚 Docs workflow finishes in 5s and then errors with tar: packages/modal/docs: Cannot open: No such file or directory. Cause: turbo's docs task only declares node_modules/.cache/docs.json as an output, so on cache hit turbo doesn't restore the generated docs/ directory. Add docs/** to the task outputs.

Both issues are pre-existing in the workflows but only surfaced now that the Publish workflow actually gets past pnpm setup + npm auth.

Test plan

  • pnpm typecheck green
  • Branch Checkup green on this PR
  • After merge: 🚀 Publish workflow on main reaches end of release-it step without GH013 error
  • After merge: 📚 Docs workflow uploads non-empty artifact

Two post-7.0.1 ship issues:

1. The release workflow's npm publish step succeeds, but release-it
   then fails pushing the version-bump commit + tag back to main
   because GITHUB_TOKEN can't bypass branch protection. Switch the
   checkout to use the existing GH_PAT secret so release-it's git
   push goes through.

2. The docs workflow re-runs in seconds because turbo's `docs` task
   only declares its cache marker file as an output, not the
   generated `docs/` directory. The subsequent tar step then fails
   with "packages/modal/docs: Cannot open: No such file or directory".
   Add `docs/**` to the task outputs so turbo restores it on cache
   hit.
Copilot AI review requested due to automatic review settings May 19, 2026 14:55
@GSTJ GSTJ enabled auto-merge (squash) May 19, 2026 14:55
Copy link
Copy Markdown

Copilot AI left a comment

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 addresses two CI workflow regressions that surfaced after the 7.0.1 release process started running end-to-end: (1) release-it failing to push the version bump commit/tag due to branch protection, and (2) docs deployments failing on Turbo cache hits because generated docs weren’t treated as cached outputs.

Changes:

  • Update the release workflow checkout to use a PAT (secrets.GH_PAT) so release-it can push commits/tags to main under branch protection.
  • Expand the Turbo docs task outputs to include the generated docs/** directory so cache hits restore docs artifacts.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
turbo.json Adds docs/** to Turbo task outputs so docs generation artifacts are restored on cache hits.
.github/workflows/release.yml Uses secrets.GH_PAT for checkout credentials to unblock release-it git push to main.

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

Comment thread .github/workflows/release.yml
expo-doctor on main started failing because npm shipped expo@55.0.25
and expo-router@55.0.15 since the SDK upgrade landed. Lockfile refresh
brings the example into compliance.
@GSTJ GSTJ merged commit 670e2ec into main May 19, 2026
3 checks passed
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.

2 participants