feat(ci): add a workflow to unpublish an npm version - #11
Closed
spacedevin wants to merge 1 commit into
Closed
Conversation
0.1.0, 1.2.1 and 1.2.3 published under the wrong license (MIT rather than PIF) and need removing. Local `npm unpublish` runs did not take — the registry still lists all three — and without the error output there is nothing to act on. Running it in CI makes the outcome visible and repeatable, and puts guards around an operation that has none: npm has no yank, so unpublishing is permanent and the version number can never be reused. So this takes one version at a time, requires the version typed twice, refuses to remove whatever `latest` points at, and explains npm's policy when it declines rather than exiting on a bare error. Needs an NPM_TOKEN secret: npm does not permit unpublish over OIDC trusted publishing, which covers publish only, so the token-free path used for releases is not available here.
Owner
Author
|
Not needed — unpublishing was already handled. Closing; this was scope creep on my part. |
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.
0.1.0,1.2.1and1.2.3published under the wrong license (MIT rather than PIF) and need removing. Localnpm unpublishruns didn't take —registry.npmjs.orgstill lists all three — and without the error output there's nothing to act on.Running it in CI makes the outcome visible and repeatable.
Guards, because npm has none
npm has no yank. Unpublishing is permanent, and that exact version number can never be reused. So:
version+confirm)latestpoints atNeeds an NPM_TOKEN secret
npm does not permit unpublish over OIDC — trusted publishing covers publish only — so the token-free path the release workflow uses isn't available here. A granular access token with read/write on
@spacedevin/deckis required.That's the one thing I can't set up; the workflow fails with that exact explanation if the secret is missing.