-
Notifications
You must be signed in to change notification settings - Fork 1
Bug: semantic-release doesn't work with npm automation tokens. #22
Comments
Passes dry-run but fails with: https://github.com/FormidableLabs/dogs/runs/1289694860?check_suite_focus=true
|
Interesting: $ NPM_TOKEN=<SNIPPED> npm publish from my laptop does indeed fail even though it's auth-only account + token. Will investigate more and publish the failed publish from my laptop before doing another automation fix. |
Ah -- it was a setting I did and forgot on the package itself to require 2fa! Manually published |
Can confirm that the |
Hi @robwalkerco -- I don't think this is actually implemented as we haven't enabled 2fa for this project in npm and we're using a normal publish token, not an npm "automation" token (which means we update our secrets). |
We have 2fa for auth-and-writes and use an automation token for best practices. But semantic-release doesn't support this yet:
Tasks
We've bandaided over this with lower npm privileges and different access tokens.
NPM_TOKEN
secret with 1password IC vault fieldGitHub Actions CI/CD Publish Token -- Automation (NPM_TOKEN)
. (We're currently usingGitHub Actions CI/CD Publish Token -- Publish (NPM_TOKEN)
Two-factor authentication is not required
toRequire two-factor authentication or automation tokens
.dogs-ci
, switch 2fa from auth only to auth and publishing.The text was updated successfully, but these errors were encountered: