Skip to content

ci(release): restore next-env.d.ts after the website build - #866

Merged
ewhauser merged 2 commits into
mainfrom
ci/restore-next-env
Oct 19, 2026
Merged

ewhauser merged 2 commits into
mainfrom
ci/restore-next-env

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

The v0.0.39 Publish Release run (39286080636) failed at goreleaser:

git is in a dirty state
 M website/next-env.d.ts

Next.js went from 16.2.3 to 16.3.8 since v0.0.38 (#848), and the newer next build rewrites the tracked website/next-env.d.ts. The release job builds the website from the release tag checkout right before goreleaser, so the tree is no longer clean.

This restores the file right after the Pages bundle export.

Recovering v0.0.39

The root and contrib v0.0.39 tags were already pushed (on 83b31f1), but no GitHub release exists. After this merges, re-run Publish Release by hand:

gh workflow run release.yml --ref main -f version=v0.0.39 -f ref=v0.0.39

tag_release.sh accepts tags that already exist on the same commit, so the run continues to goreleaser and pkg.go.dev.

Next.js 16.3 rewrites the tracked website/next-env.d.ts during next
build, so the Publish Release job left the release tag checkout dirty
and goreleaser refused to run. This failed the v0.0.39 publish after
its tags were pushed. Restore the file after exporting the Pages
bundle.
@ewhauser
ewhauser merged commit 0f59cdf into main Oct 19, 2026
17 checks passed
@ewhauser
ewhauser deleted the ci/restore-next-env branch October 19, 2026 17:02
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