Skip to content

Conversation

@alexjpwalker
Copy link
Member

@alexjpwalker alexjpwalker commented Jan 11, 2022

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.

  • Update dependencies (to make deploy_npm use token authentication) and automation.yml (to pass the token in)

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 -
Copy link
Member Author

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():
Copy link
Member Author

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(
Copy link
Member Author

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

@lolski lolski self-requested a review January 12, 2022 14:12
@lolski lolski merged commit 13b34b1 into typedb:master Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants