Skip to content

ci(release): automate releases with uppt and npm trusted publishing - #1501

Merged
larbish merged 1 commit into
mainfrom
ci/release-uppt
Nov 25, 2026
Merged

larbish merged 1 commit into
mainfrom
ci/release-uppt

Conversation

@larbish

@larbish larbish commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Releases ran locally with release-it (pnpm release), using an npm login and a hand-pasted GitHub release. This moves them to CI with uppt, like comark (#562).

  • Release workflow: each push to main opens a draft release/vX.Y.Z PR for docus and create-docus in lockstep. Merging it tags, creates the GitHub release from the PR body, and stages both packages on npm over OIDC, ready for approval with 2FA.
  • release-it removed: configs, scripts and devDependencies. CHANGELOG.md is deleted; release notes live in GitHub Releases.
  • release-notes skill: writes Highlights and New documentation into the release PR body, above the changelog uppt generates.

Evidence

Dry run of uppt's release PR step on main:

Current: 5.15.0  ->  5.15.1 (patch)
Workspaces (2): create-docus, docus
Release branch: release/v5.15.1
Commits: 17

pnpm pack after an install with --ignore-scripts builds create-docus/dist/main.mjs, and the docus tarball has 123 files, the same as the published 5.15.0.

Notes

Before merging: create the npm environment, enable "Allow GitHub Actions to create and approve pull requests", and add trusted publishers for both packages (npm trust github <pkg> --file release.yml --repo nuxt-content/docus --env npm --allow-stage-publish).

ELI5

Publishing a new Docus version used to happen from a laptop. Now GitHub prepares a release PR on its own, and merging it builds the packages. A maintainer then clicks approve on npm to make them live.

🤖 Generated with Amp, reviewed by @larbish before opening.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docus Ready Ready Preview Nov 25, 2026 3:31pm UTC

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-docus@1501
npm i https://pkg.pr.new/docus@1501

commit: b58b6d2

@docus-bundle-report

Copy link
Copy Markdown

Bundle size

Explore the comparison →

Client 774.5 kB (no change) · Server 1.59 MB $\color{green}\textsf{(-10 B, -0.0}\%\textsf{)}$

No route loads 100 B more or less before it renders.

No prerendered URL's initial load or HTML changes by 100 B or more.

Brotli sizes. Changes under 100 B are left out of the tables. Measured by nuxt-bundle-analyzer for b58b6d2.

@larbish
larbish merged commit c2a4aba into main Nov 25, 2026
12 checks passed
@larbish
larbish deleted the ci/release-uppt branch November 25, 2026 16:03

This branch was successfully deployed

1 active deployment
Preview — b58b6d20 Deployed Nov 25, 2026 by vercel[bot]
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