-
Notifications
You must be signed in to change notification settings - Fork 15
Use token-based authentication for npm deployment #150
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
Conversation
| image: vaticle-ubuntu-21.04 | ||
| command: | | ||
| curl https://cli-assets.heroku.com/apt/release.key | sudo apt-key add - | ||
| wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - |
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.
Update CI scripts: we no longer need username/email/password for authentication when deploying the npm package - we just need a reusable auth token.
The token used depends on which repo we're deploying to, snapshot or release.
|
|
||
| load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | ||
|
|
||
| def vaticle_dependencies(): |
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.
Update to dependencies that gives us access to the token-based deploy_npm rule
| load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | ||
|
|
||
| def vaticle_dependencies(): | ||
| git_repository( |
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.
Update to dependencies that gives us access to the token-based deploy_npm rule
What is the goal of this PR?
The npm deployment infrastructure now uses token-based authentication instead of username/password authentication.
What are the changes implemented in this PR?
See typedb/bazel-distribution#330 for an explanation of why this PR is necessary.
deploy_npmuse token authentication) and automation.yml (to pass the token in)