Skip to content
Discussion options

You must be logged in to vote

@trendai-au
Good news on question 2 first, since it's your actual way out of this: yes, there's a CLI route that skips the web form entirely — npm trust. This isn't a workaround someone hacked together, it's the documented command-line equivalent of the same settings page:

npm trust github your-package-name \
  --repo owner/repo \
  --file publish.yml \
  --allow-publish

Requirements: npm CLI 11.15.0+, 2FA enabled on the account (it'll prompt interactively the first time — via the normal npm 2FA flow, not the web form), and the package must already exist on the registry. npm trust list [package] shows existing config, npm trust revoke --id <id> removes one if you need to replace it (only …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by trendai-au
Comment options

You must be logged in to vote
1 reply
@nirav-gajera
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Bug GitHub or a GitHub feature is not working as intended npm Discussions around programming langages, open source and software development source:ui Discussions created via Community GitHub templates
2 participants