So the upcoming NPM publish token changes are a potential lock-out scenario for ...
Karsten Schmidt @toxi@mastodon.thi.ng
So the upcoming NPM publish token changes are a potential lock-out scenario for people who're not using CI-based "Trusted Publishing" (TP) and cannot switch to "Staged Publishing" (SP) for reasons of practicality or feasibility.
https://github.blog/changelog/2026-07-08-npm-install-time-security-and-gat-bypass2fa-deprecation/
The first approach (TP) requires a compatible CI platform (currently only Github, Gitlab or CircleCI supported), the latter requires manual approvals by a human, for each single publishing attempt... Both approaches are seemingly per-package solutions only, meaning for a full release of my https://thi.ng/umbrella monorepo I'd either have to use one of the three CI platforms above and manually fill out 216 forms (one per package) to register each package for TP. Alternatively, for SP I'd have to manually approve (with 2FA) each staged package (also up to 200+ times). No batch process/approval workflows mentioned or envisioned! Just who are these people making plans like this?!
If this proposal doesn't change, then it means I (and others in similar situations) won't be able to publish my projects anymore after January 2027, when this all is planned to come into force. End of the road! Open source enclosed at the point of publishing by monopolistic infrastructure...
I understand security is important, but these problems should (MUST!) be approached & solved differently. It's simply unreasonable to force developers to figure out how to re-adapt their release tooling every few months toward ever tighter and increasingly hostile decision-making on NPM's end, without any choice in the matter...
If you can, please contribute your views to the discussion on Github:
https://github.com/orgs/community/discussions/201329
#NPM #OpenSource #Release #InfoSec #2FA #TypeScript #JavaScript