You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One limitation is that it's not possible to publish the initial version of a package using OIDC, it needs to be published manually or using a token. It would be great to support OIDC publishing for the initial version.
thank you for creating a dedicated issue for this. I would like to give as well a few ideas on potential implementations. Instead of allowing the publishing with OIDC for not yet created packages another option would be to allow "empty" packages to be created on npmjs.com.
I could imagine if that is not feasible, there could be a specific version string dedicated which is treated as "empty". E.g. 0.0.0-dummy-npm. We do it with such a dummy version currently and then delete the dummy version again after the team published their first real version. Or if they are not quick enough only deprecate it, which is not really great. So having an official dummy version which can always be deleted would give us already a nice workaround to grab a package name, setup the OIDC publishing and deleting the dummy version again after the first real version is published.
Anyway, thank you again for looking into this. Really loving the OIDC publishing features so far 🚀
@johnbillion Thank you for bringing this to discussion! We determined to not have "first publish" available to limit scope in our MVP, but are evaluating options for the next step. This is on our minds 😄
Reacted by John Blackbourn, Ghislain B., Karsten Schmidt, Matt Travi, matthieu-crouzet, 34j and Chris Baumann
Any updated plans for this? It makes shipping a new package much more involved than it ideally would be.
Reacted by Russell McClellan, Danyal Aytekin, Luke Deen Taylor, Nathan Sarang-Walters, Derrick Hammer, Alan North, Stefan Madsen, Konstantin Shutkin, Kyℓe Hensel, Luis Covarrubias and 9 more
@owlstronaut Hi, would this feature remove the need to use npm's CLI tool to init the registry publishing configuration? Sorry, I know the initial setup process is still not that easy, but I'm not sure if this feature would remove the required step of using the CLI to init, or using a temporary API token to work around this problem. Overall, I would say the publishing process is still very inconvenient and not well explained between the instructions and alerts in the npmjs UI and the npmjs docs.
Activity
Shegox commentedon Sep 1, 2025
Hello @johnbillion,
thank you for creating a dedicated issue for this. I would like to give as well a few ideas on potential implementations. Instead of allowing the publishing with OIDC for not yet created packages another option would be to allow "empty" packages to be created on npmjs.com.
I could imagine if that is not feasible, there could be a specific version string dedicated which is treated as "empty". E.g.
0.0.0-dummy-npm. We do it with such a dummy version currently and then delete the dummy version again after the team published their first real version. Or if they are not quick enough only deprecate it, which is not really great. So having an official dummy version which can always be deleted would give us already a nice workaround to grab a package name, setup the OIDC publishing and deleting the dummy version again after the first real version is published.Anyway, thank you again for looking into this. Really loving the OIDC publishing features so far 🚀
owlstronaut commentedon Sep 5, 2025
@johnbillion Thank you for bringing this to discussion! We determined to not have "first publish" available to limit scope in our MVP, but are evaluating options for the next step. This is on our minds 😄
34j commentedon Oct 26, 2025
setup-npm-trusted-publish, a dedicated tool for this, can be used to publish a "dummy" package to npm:
ci: configure `NPM_TOKEN` for the initial package deployment
ci: set temporary npm token to satisfy semantic release for the initi…
ci: set temporary npm token to satisfy semantic release for the initi…
ci: set temporary npm token for the initial deployment
RobertCraigie commentedon Dec 19, 2025
Any updated plans for this? It makes shipping a new package much more involved than it ideally would be.
lcovar commentedon Mar 3, 2026
what's the latest on this?
AMDphreak commentedon Mar 11, 2026
@owlstronaut Hi, would this feature remove the need to use npm's CLI tool to init the registry publishing configuration? Sorry, I know the initial setup process is still not that easy, but I'm not sure if this feature would remove the required step of using the CLI to init, or using a temporary API token to work around this problem. Overall, I would say the publishing process is still very inconvenient and not well explained between the instructions and alerts in the npmjs UI and the npmjs docs.
release: add bootstrap-token fallback for first npm publish
ci(release): switch npm-publish from NPM_TOKEN to OIDC trusted publis…
Address SWE review findings on npm build type
Add npm fixture and test-npm job for wrangle integration tests
Add npm fixture and test-npm job (#7)
191 remaining items
fix: リポジトリ名を shuji-bonji/recover に直し、初回 publish の手順を書く
ci: publish from a tag via npm Trusted Publishing, so this repo keeps…
chore: 0.1.1, and write down that v0.1.0 must never be tagged
docs: a publishing path for npm that does not need a token
build: publish over OIDC instead of a stored npm token
ci: a release workflow publishing to npm through OIDC
Record npm's actual bootstrap order, checked against npm's docs
Record npm's actual bootstrap order, checked against npm's docs
Record npm's actual bootstrap order, checked against npm's docs
Record npm's actual bootstrap order, checked against npm's docs
loader: one-time npm first-publish + trusted-publisher script
loader: standalone tsx-style npm loader package (#810)
ci: support both token and OIDC publishing
release: bootstrap npm auth for never-published packages, self-degrad…
Add trusted-publishing release workflow