ci: publish from a tag-driven workflow with npm trusted publishing #200
[vc]: #0rt6YYFZqXi/rsQeIUuVlzHOUg7F2XqmgXsASK5B3kU=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJkcmFnLWFuZC1kcm9wLWRvY3MiLCJwcm9qZWN0SWQiOiJwcmpfbUNKSEUydjIwQnJmVFpuTlh3YW1QQTZrYks4bSIsInYwIjpmYWxzZSwiaW5zcGVjdG9yVXJsIjoiaHR0cHM6Ly92ZXJjZWwuY29tL2Zvcm1raXQvZHJhZy1hbmQtZHJvcC1kb2NzLzN4ck1YdXhUZGNnSHphWVBjNVpzVkhRNlpTVksiLCJwcmV2aWV3VXJsIjoiZHJhZy1hbmQtZHJvcC1kb2NzLWdpdC1jaS1wdWJsaXNoLXdvcmtmbG93LWZvcm1raXQudmVyY2VsLmFwcCIsIm5leHRDb21taXRTdGF0dXMiOiJERVBMT1lFRCIsInJvb3REaXJlY3RvcnkiOiJkb2NzIn1dLCJyZXF1ZXN0UmV2aWV3VXJsIjoiaHR0cHM6Ly92ZXJjZWwuY29tL3ZlcmNlbC1hZ2VudC9yZXF1ZXN0LXJldmlldz9vd25lcj1mb3Jta2l0JnJlcG89ZHJhZy1hbmQtZHJvcCZwcj0yMDAifQ==
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
| :--- | :----- | :------ | :------ |
| drag-and-drop-docs | !Ready Ready | Preview | Jun 11, 2026 7:58pm |
<a href="https://vercel.com/vercel-agent/request-review?owner=formkit&repo=drag-and-drop&pr=200" rel="noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://agents-vade-review.vercel.sh/request-review-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://agents-vade-review.vercel.sh/request-review-light.svg"><img src="https://agents-vade-review.vercel.sh/request-review-light.svg" alt="Request Review"></picture></a>
Review notes: dist-tag inference regex matches the formkit monorepo's exactly (a version like 1.0.0-devtools.1 would publish as latest — same accepted behavior there; the canonical prerelease channels are -next./-dev.). The latest-branch guard uses 'git branch -r --contains HEAD' with fetch-depth 0, same as the hardened release.yml had. publish runs from dist/ where build.ts writes the public package.json (private stripped, exports rewritten) — verified earlier in #180 that the built manifest is correct. Node pinned to the same verified-good 24.15.0 as ci.yml.
justin-schroeder
Moves publishing from local
pnpm publishto a tag-driven GitHub workflow, modeled on how tempo and the formkit monorepo publish.How releasing works now
Push a git tag and the workflow does the rest:
| Tag | npm version | dist-tag |
|---|---|---|
|
v0.6.0|0.6.0|latest— only allowed from main ||
v0.6.0-next.abc1234|0.6.0-next.abc1234|next||
v0.6.0-dev.abc1234|0.6.0-dev.abc1234|dev|The prerelease suffix is the short commit hash.
Pipeline
1. Tests first:
publish.ymlcallsci.yml(nowworkflow_call-able) — the full 4-shard Playwright matrix must pass before anything publishes.2. Version is written into package.json from the tag, built, validated with
publint, and published fromdist/.3. npm trusted publishing (OIDC) —
id-token: write+npm@latest, noNPM_TOKENanywhere.4.
changelogithubgenerates GitHub release notes forlatestreleases only.Housekeeping
release.ymlis removed (superseded — the npm trusted publisher needs to point atpublish.ymlwhen configured).ci.ymlno longer fires directly on tag pushes (publish.yml invokes it), so a release runs the matrix exactly once.