ci: add npm-only release workflow to recover npm registry drift#50
Merged
Conversation
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.
Motivation
release.ymlworkflow when only npm needs to be repaired, reducing risk of double-publishing Python artifacts.Description
.github/workflows/npm-release.ymlthat acceptsrefandversioninputs and performs an npm-only publish flow.package.jsonmatches the expectedversion, runsnpm whoamiusingNPM_TOKEN, and runsnpm pack --dry-runbefore publishing.npm publish --access publicthe workflow verifies the public registry withnpm viewand thelatestdist-tag, and runsnpx simplicio-prompt@<version> --versionplus a--rawsmoke check that searches forCompose with simplicio-cli.CONTRIBUTING.mdwith guidance to prefer the new manualnpm releaseworkflow when npm has fallen behind PyPI, and document the verification steps performed by the workflow.Testing
npm test(Node + Python suites) and all automated tests passed across the local suites (Node CLI/hooks/cache/targets and Pythonunittestdiscovery).npm pack --dry-runwhich producedsimplicio-prompt-1.12.0.tgzas a successful dry-run of the npm package.npm whoamilocally which failed withENEEDAUTH, confirming this environment is not authenticated to publish to npm and that the workflow requires a repositoryNPM_TOKENsecret for real publication.Codex Task