← Back to Pull requests

ci: publish from a tag-driven workflow with npm trusted publishing #200

Merged
justin-schroeder merged 2 files (53 lines) on Jun 11, 2026 19:57 UTC
View on GitHub
justin-schroeder justin-schroeder commented on Jun 11, 2026 19:57 UTC
Author

Moves publishing from local pnpm publish to 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.yml calls ci.yml (now workflow_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 from dist/.
3. npm trusted publishing (OIDC) — id-token: write + npm@latest, no NPM_TOKEN anywhere.
4. changelogithub generates GitHub release notes for latest releases only.

Housekeeping


  • release.yml is removed (superseded — the npm trusted publisher needs to point at publish.yml when configured).

  • ci.yml no longer fires directly on tag pushes (publish.yml invokes it), so a release runs the matrix exactly once.
  • Diff: 53 lines (+33 / -20) across 2 files Reviewer: justin-schroeder Review duration: 0m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.52) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 53 lines diff across 2 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 1 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 8% · Reviewer familiarity: 35%
    43%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.239
    Self Review self_review
    0.140
    Rapid Merge rapid_merge
    0.100
    Real PR Conversation Timeline
    3 items
    vercel[bot] vercel[bot] commented on Jun 11, 2026 19:57 UTC
    Bot

    [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>

    justin-schroeder justin-schroeder commented on Jun 11, 2026 19:57 UTC
    Reviewer

    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.

    Assignees
    justin-schroeder justin-schroeder
    Labels
    risk: low confidence: 43.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52.3% (MEDIUM) · Higher = larger blast radius
    52.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.8% · Lower = rushed or shallow review
    43.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.4% · Safe to merge
    29.4%