Repository navigation
ci(release): restore next-env.d.ts after the website build - #866
Merged
Merged
Conversation
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
enabled auto-merge (squash)
October 19, 2026 16:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The v0.0.39 Publish Release run (39286080636) failed at goreleaser:
Next.js went from 16.2.3 to 16.3.8 since v0.0.38 (#848), and the newer
next buildrewrites the trackedwebsite/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.39tags were already pushed (on83b31f1), but no GitHub release exists. After this merges, re-run Publish Release by hand:tag_release.shaccepts tags that already exist on the same commit, so the run continues to goreleaser and pkg.go.dev.