Skip to content
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

github package & login #10

Open
xgqfrms opened this issue Aug 9, 2022 · 14 comments
Open

github package & login #10

xgqfrms opened this issue Aug 9, 2022 · 14 comments
Labels
bug Something isn't working GitHub Packages GitHub Packages npm publish & bypass 2FA npm publish & bypass 2FA npm token npm token

Comments

@xgqfrms
Copy link
Owner

xgqfrms commented Aug 9, 2022

github package & login

image

https://github.com/xgqfrms/wcui/runs/7739372433?check_suite_focus=true#step:5:32

publish my first github package ✅

https://www.cnblogs.com/xgqfrms/p/16565524.html

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

.npmrc & publishConfig

https://docs.github.com/en/packages/quickstart

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

npm ERR! need auth You need to authorize this machine using npm adduser

https://github.com/xgqfrms/wcui/runs/7739435797?check_suite_focus=true#step:5:32

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

https://zhuanlan.zhihu.com/p/494193833

npm tokens

https://www.npmjs.com/settings/xgqfrms/tokens/

bypass 2FA

跳过两步验证

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

🚀 publish my first github package ✅ with real npm token 👍

https://www.cnblogs.com/xgqfrms/p/16565524.html

@xgqfrms xgqfrms added the npm token npm token label Aug 9, 2022
@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

https://github.com/xgqfrms/wcui/settings/secrets/actions

https://github.com/settings/tokens

npm ERR! 401 Unauthorized - PUT https://npm.pkg.github.com/@xgqfrms%2fwcui - Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.

npm ERR! 401 Unauthorized - PUT - Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.

.npmrc

//npm.pkg.github.com/:_authToken=NPM_TOKEN

https://stackoverflow.com/questions/64124831/github-actions-401-unauthorized-when-installing-a-github-package-with-npm-or-ya

@xgqfrms xgqfrms added the npm publish & bypass 2FA npm publish & bypass 2FA label Aug 9, 2022
@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

- //npm.pkg.github.com/:_authToken=GITHUB_TOKEN
+ //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@xgqfrms:registry=https://npm.pkg.github.com

https://github.com/orgs/community/discussions/26869

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

GitHub package bugs All In One

https://gist.github.com/xgqfrms/c837e1b27674eeea350f2db7d401ee0f

@xgqfrms xgqfrms added GitHub Packages GitHub Packages bug Something isn't working labels Aug 9, 2022
@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

@xgqfrms
Copy link
Owner Author

xgqfrms commented Aug 9, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GitHub Packages GitHub Packages npm publish & bypass 2FA npm publish & bypass 2FA npm token npm token
Projects
None yet
Development

No branches or pull requests

1 participant