Skip to content

ci: add automated release pipeline for npm#190

Merged
zacowan merged 12 commits intomainfrom
zach/release-pipeline
Feb 4, 2026
Merged

ci: add automated release pipeline for npm#190
zacowan merged 12 commits intomainfrom
zach/release-pipeline

Conversation

@zacowan
Copy link
Copy Markdown
Collaborator

@zacowan zacowan commented Nov 13, 2025

Context

The release process for this repository only released changes to GitHub, which introduced a few problems:

  • npm versions and GitHub Release versions could drift out of sync
  • The font files in packages/next/dist/fonts were manually maintained and not updated as part of the build process, meaning it was possible to forget to update the font files in the npm package even if the font files in the github release were accurate

Solution

Consolidated the release pipeline into a single workflow controlled entirely by changesets:

  • Changesets-driven releases: Changesets now handles both npm publishing and GitHub Release creation. The font zip is uploaded to the GitHub release that Changesets creates
  • Automated font copying: Added copy-npm-fonts target to the Makefile that copies built ttf/woff2 files into packages/next/dist/fonts/ as part of make build, with necessary renames to match existing naming conventions
  • Zip generation in build: Moved release zip creation into the Makefile (create-release-zip target) so it's generated alongside fonts, rather than as part of the github action
  • Documentation: Added CONTRIBUTING.md explaining the release process and how to use changesets

This also introduces some small QoL changes to the repo:

  • We now use corepack to manage the package manager (in this case, pnpm) version
  • We now have a .nvmrc file to ensure we use a consistent version of Node.js

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
v0-vercel-geist-font Ready Ready Preview, Comment, Open in v0 Feb 4, 2026 8:36pm

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Nov 13, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​next@​14.0.1 ⏵ 16.1.162 +482 +5790 -397 +4770
Addednpm/​@​changesets/​cli@​2.29.89610010089100

View full report

Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/build.yaml Outdated
Comment thread .gitignore
@zacowan zacowan marked this pull request as ready for review January 7, 2026 22:52
@zacowan zacowan requested a review from skullface January 7, 2026 22:52
@zacowan zacowan requested review from bkonkle and mehulkar January 7, 2026 22:52
mehulkar
mehulkar previously approved these changes Jan 12, 2026
skullface
skullface previously approved these changes Jan 29, 2026
@zacowan zacowan merged commit ca10d0d into main Feb 4, 2026
8 checks passed
@zacowan zacowan deleted the zach/release-pipeline branch February 4, 2026 22:01
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