Skip to content

Commit f317502

Browse files
author
shipjs
committed
update the doc to recomment automation token
1 parent 1bb9b68 commit f317502

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

website/guide/automation-token.png

186 KB
Loading

website/guide/getting-started.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,13 @@ Setup an NPM token to allow Ship.js(**at CircleCI**) to release the package to N
124124
- Name: `NPM_AUTH_TOKEN`
125125
- Value: Paste the token from clipboard.
126126
127-
:::warning WARNING for 2FA If you have enabled 2FA for both authorization and publishing, when `shipjs trigger` runs, it will be prompted for one-time password. You probably have configured CI service (CircleCI, GitHub Actions, etc) to run that command for you. It means `shipjs trigger` will be stuck.
127+
:::warning WARNING for 2FA
128+
If you have enabled 2FA for both authorization and publishing, when `shipjs trigger` runs, it will be prompted for one-time password. You probably have configured CI service (CircleCI, GitHub Actions, etc) to run that command for you. It means `shipjs trigger` will be stuck.
128129
129-
For now, we don't have any solution to avoid this problem. So we recommend you not to use two-factor authentication for publishing, but only for authorization.
130+
NPM has [released](https://github.blog/changelog/2020-10-02-npm-automation-tokens/) a new feature "Automation token" to solve this.
130131
131-
![NPM two-factor authentication](./npm-2fa.png) :::
132+
![NPM automatin token](./automation-token.png)
133+
:::
132134
133135
### GitHub Token
134136

0 commit comments

Comments
 (0)