-
Notifications
You must be signed in to change notification settings - Fork 9
feat(storybook): add storybook-webmcp addon for AI agents #1116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3987e27
e1e822f
8efc869
7ae3673
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| legacy-peer-deps=true | ||
|
|
||
| # storybook-webmcp lives on GitHub Packages. Even for public packages, | ||
| # the GHPR npm registry requires a token with read:packages scope. | ||
| # Local dev: export NODE_AUTH_TOKEN=$(gh auth token) | ||
| # CI: pass NODE_AUTH_TOKEN via secrets (e.g. ${{ secrets.GITHUB_TOKEN }}). | ||
| @jbwatenbergscality:registry=https://npm.pkg.github.com | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Combined with |
||
| //npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All three CI workflows ( Each workflow needs something like: - run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
echoto~/.npmrcis shadowed by the project.npmrc, which already declares//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}. npm resolves project.npmrcover user~/.npmrcfor the same registry-scoped key, so the hardcoded token written here is never used. SinceNODE_AUTH_TOKENis not set in this job, npm resolves it to empty string andnpm ciwill 401 on GHPR.Two ways to fix: (a) set
NODE_AUTH_TOKENas env onnpm cihere too (same credential-leak risk the comment explains), or (b) remove the//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}line from the project.npmrcentirely and have every CI workflow inject auth viaecho >> ~/.npmrcinstead.