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
Remove "Recommended" label from gh CLI option and add note about token expiration. The gh auth token method only works reliably if authenticated with a PAT, not OAuth, as OAuth tokens expire.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,16 +35,16 @@ npm config set //npm.pkg.github.com/:_authToken YOUR_GITHUB_TOKEN
35
35
36
36
Replace `YOUR_GITHUB_TOKEN` with your GitHub personal access token that has `read:packages` permission.
37
37
38
-
**Option 3: Using GitHub CLI (Recommended)**
38
+
**Option 3: Using GitHub CLI**
39
39
40
-
If you have the [GitHub CLI](https://cli.github.com/) installed and authenticated, you can automatically configure npm:
40
+
If you have the [GitHub CLI](https://cli.github.com/) installed and authenticated with a Personal Access Token, you can automatically configure npm:
41
41
42
42
```sh
43
43
npm config set @cloudbeds:registry https://npm.pkg.github.com
44
44
npm config set //npm.pkg.github.com/:_authToken $(gh auth token)
45
45
```
46
46
47
-
This uses your existing GitHub CLI authentication, eliminating the need to manually manage tokens.
47
+
**Note:**This only works reliably if you authenticated GitHub CLI with a PAT (using `gh auth login --with-token`). If you used OAuth web flow, the token may expire and you'll need to reconfigure npm.
0 commit comments