Repository navigation
chore(#1184): publishConfig.tag next — a bare npm publish can never move latest - #1185
Merged
Merged
Conversation
… move latest Entire-Checkpoint: d5a409f293d8
Entire-Checkpoint: 4c40d0286fd2
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.
Closes #1184
A bare
npm publishof this package now lands on thenextdist-tag.latestmoves only through the deliberate/release --soakedpromotion (npm dist-tag add … latest). A bare publish movedlateststraight past the soak on both 2.17.0 and 2.18.0, even though the handoff line carried--tag next. An instruction isn't a guard; package config is.Change
package.json:"publishConfig": { "tag": "next" }./releaseStep 9, all three copies: notes the new default. The handoff line keeps--tag next, which is explicit, harmless, and pinned byrelease-skill-soak.test.ts.[Unreleased]→### Changed.Why the test runs real npm
npm's
--dry-runnotice printsconfig.get('tag'), which never seespublishConfig. It said "with tag latest" even with the change in place. The real publish uses the flatteneddefaultTag, which does see it (npm 10.9.8,lib/commands/publish.js; CLI flags are filtered out first, so an explicit--tagstill wins). Soscripts/release-publish-tag.integration.test.tsruns the realnpm publish --ignore-scriptsagainst a throwaway HTTP server on 127.0.0.1, with a temporary userconfig and token and every inheritednpm_config_*stripped, then asserts thedist-tagsin the PUT body. Nothing reaches the real registry.node -p "require('./package.json').publishConfig.tag"→nextnpx vitest run scripts/release-publish-tag.integration.test.ts→ 2 passed (bare →["next"],--tag beta→["beta"])grep -n "publishConfig"matches all threerelease/SKILL.mdcopies;npm run lint:skill-sync→ 44 synced;release-skill-soak.test.ts→ 4 passednpx vitest run --project canary→ 4 passedMutation-verified: AC-2 — deleted
publishConfigfrom package.json; scripts/release-publish-tag.integration.test.ts "1184: a bare npm publish tags next, not latest" failed (received["latest"]; 1 failed | 1 passed); restored.🤖 Generated with Claude Code