Repository navigation
Smoke the npm install after every publish and include it in the release announcement - #14
Merged
Merged
Conversation
Astroricks
marked this pull request as ready for review
November 13, 2026 02:48
…ter's pnpm; derive the draft tag
…oke and announce manual re-publishes
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.
Problem
The release smoke that installs
@square/clifrom npm on every platform runs only when the person releasing starts it by hand, from a copy of the workflow on a throwaway branch. Meanwhilenotifyposts ✅ as soon asnpm publishreturns, even if some platforms can't install the release yet. With v0.4.19, the Linux x64 and Windows platform tarballs returned 404 for about 15 minutes after the publish.Solution
smoke.ymllives onmainas theRelease smokeworkflow, withworkflow_dispatch(a draft release, before publishing) andworkflow_call(Publish to npm, after publishing). It never signs in.release, the automatic one, runs with no token scopes, since it runs npm and the starter's dependencies. It downloads from the unauthenticated URLs users use.draftkeepscontents: write, which reading a draft release needs. It runs only when dispatched by hand before publishing. Each job downloads straight from the draft, so unpublished binaries never become a run artifact, which anyone can download on a public repo.packageManagerfield pins, so a new pnpm release can't fail the smoke.smoke-v<version>, so the tag is derived rather than passed in.Publish to npm calls it in a new
smokejob afterpublish. It runs for release events and for manual re-publishes (dry_runoff), not for dry runs.publishexposes the version as a job output.notifywaits for both jobs and posts one message:It now also runs for manual re-publishes, so a recovery gets announced.
conclusionin the payload is the result of whichever stage decided the message.Concurrency moves onto the
publishjob, withqueue: max. A release run no longer holds the slot while its smoke runs. The default queue keeps only the newest waiting run and cancels the others, which could have dropped a release's publish when a later dispatch arrived.Test Steps
actionlint1.7.12 passes on both workflows, apart fromconcurrency.queue, a key it doesn't recognize yet.smoke.ymlexactly as Publish to npm does:contents: readat the workflow level,contents: writeon the calling job. It ransource: releaseagainst v0.4.19 andsource: draftagainst a draft copy of v0.4.19's assets. All 10 platform jobs passed and the run left no artifacts. An earlier run included a job usingqueue: max, which GitHub accepted. The log shows the starter'spnpm@10.32.1was installed. The temporary workflow, the draft and the runs are deleted.npmandsquarecommands, passed once the stub started serving and failed after the last attempt when it never did.smokeafter a real publish, thennotify) runs for the first time on the next release.🤖 Generated with Claude Code