Skip to content

Commit 13b34b1

Browse files
authored
Use token-based authentication for npm deployment (#150)
## 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)
1 parent 6ce6652 commit 13b34b1

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.grabl/automation.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ build:
6363
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
6464
sudo apt update -y
6565
sudo apt install -y expect
66-
export DEPLOY_NPM_USERNAME=$REPO_VATICLE_USERNAME
67-
export DEPLOY_NPM_PASSWORD=$REPO_VATICLE_PASSWORD
68-
export DEPLOY_NPM_EMAIL=$REPO_VATICLE_EMAIL
66+
export DEPLOY_NPM_TOKEN=$REPO_VATICLE_NPM_TOKEN
6967
bazel run --define version=$(git rev-parse HEAD) //grpc/nodejs:deploy-npm -- snapshot
7068
dependencies: [build, build-dependency]
7169
deploy-pip-snapshot:
@@ -112,9 +110,7 @@ release:
112110
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
113111
sudo apt update -y
114112
sudo apt install -y expect
115-
export DEPLOY_NPM_USERNAME=$REPO_NPM_USERNAME
116-
export DEPLOY_NPM_PASSWORD=$REPO_NPM_PASSWORD
117-
export DEPLOY_NPM_EMAIL=$REPO_VATICLE_EMAIL
113+
export DEPLOY_NPM_TOKEN=$REPO_NPM_TOKEN
118114
bazel run --define version=$(cat VERSION) //grpc/nodejs:deploy-npm -- release
119115
dependencies: [deploy-github]
120116
deploy-pip-release:

dependencies/vaticle/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ def vaticle_dependencies():
2121
git_repository(
2222
name = "vaticle_dependencies",
2323
remote = "https://github.com/vaticle/dependencies",
24-
commit = "084a9d839d8ec617b5fb3dca7a0c8614417586b8", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
24+
commit = "5c899ccd7ecf2fb571c262c013881b54de1055cd", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
2525
)

0 commit comments

Comments
 (0)