Skip to content

fix(ci): remove duplicate npm plugin from auto config#2525

Merged
domoritz merged 1 commit into
vega:nextfrom
puckey:fix/duplicate-npm-plugin
Jun 19, 2026
Merged

fix(ci): remove duplicate npm plugin from auto config#2525
domoritz merged 1 commit into
vega:nextfrom
puckey:fix/duplicate-npm-plugin

Conversation

@puckey

@puckey puckey commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Problem

Prerelease publishing to next succeeds on npm but fails creating the GitHub release with:

RequestError [HttpError]: Validation Failed: tag_name is not well-formed / Published releases must have a valid tag (422)

This has been failing on every release since the trusted-publishing change — GitHub Releases are stuck at v2.5.0 (Feb 4) while npm is at 2.9.1-next.15.

Root cause

714fa1dc ("ci: use npm trusted publishing") added ["npm", { "setRcToken": false }] but left the original bare "npm" entry in place, so the npm plugin is listed twice:

"plugins": ["npm", ..., ["npm", { "setRcToken": false }]]

auto's loadPlugins does no dedup — it .apply()s every entry — so the plugin taps the next hook twice. Each tap runs a full npm version + npm publish, so two prereleases are published per run (e.g. 2.9.1-next.14 and next.15). auto's next() then joins the whole result array into a single tag name:

newVersion = "v2.9.1-next.14, v2.9.1-next.15"

which it passes to the GitHub release API as tag_name → 422 "not well-formed".

Fix

Remove the duplicate, keeping the setRcToken: false entry (correct for the OIDC trusted-publishing setup). This stops the double-publish and the malformed tag name. Existing missed GitHub releases won't be backfilled automatically, but future releases will create releases again.

Version

Published prerelease version: v2.9.1-next.16

Changelog

🎉 This release contains work from new contributors! 🎉

Thanks for all your work!

❤️ Jonathan Puckey (@puckey)

❤️ Momo Kornher (@mrgrain)

❤️ _Kerman (@kermanx)

❤️ Ninjackson (@ninjack-dev)

❤️ Orgad Shaneh (@orgads)

❤️ Antonin CELESTIN (@aciwecloud)

🚀 Enhancement

🐛 Bug Fix

  • fix(ci): remove duplicate npm plugin from auto config #2525 (@puckey)
  • fix: relative --tsconfig path breaks @types resolution #2520 (@mrgrain)
  • fix: getTypeByKey should search baseTypes before additionalProperties #2521 (@kermanx)
  • fix: add issues and pull-requests write permissions to publish-auto workflow #2516 (@Copilot)
  • Add support for infer in conditionals operating on function parameters #2495 (@ninjack-dev)
  • fix: preserve mapped indexed access annotations #2501 (@orgads)
  • ci: publish only from main repository #2502 (@orgads)
  • fix: array ref used as rest item #2496 (@aciwecloud)
  • fix: mapped types required type #2492 (@aciwecloud)
  • fix: Include types referenced only in additionalItems in schema definitions #2477 (@aciwecloud)

⚠️ Pushed to next

  • ci: update dependabot config to be quarterly, simplify auto-merge (@domoritz)

🔩 Dependency Updates

Authors: 10

The bare "npm" plugin entry was left in place when 714fa1d added
["npm", { "setRcToken": false }], so the plugin is registered twice.
auto's loadPlugins does no dedup, so the next hook runs twice, publishing
two prereleases per release and joining them into one malformed GitHub
release tag_name ("v...-next.14, v...-next.15") -> 422 not well-formed.
@domoritz domoritz merged commit 16036c4 into vega:next Jun 19, 2026
12 of 13 checks passed
@github-actions

Copy link
Copy Markdown

🚀 PR was released in v2.9.1-next.16 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants