Skip to content

Commit 84b45e1

Browse files
committed
Fix deployment of NPM packages
1 parent 1f7ced5 commit 84b45e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.grabl/automation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ build:
6666
export DEPLOY_NPM_USERNAME=$REPO_VATICLE_USERNAME
6767
export DEPLOY_NPM_PASSWORD=$REPO_VATICLE_PASSWORD
6868
export DEPLOY_NPM_EMAIL=$REPO_VATICLE_EMAIL
69+
# Point NPM cache to a temporary directory that is writeable under Bazel sandboxing
70+
sudo npm config -g set cache /tmp/npm-cache/
6971
bazel run --define version=$(git rev-parse HEAD) //grpc/nodejs:deploy-npm -- snapshot
7072
dependencies: [build, build-dependency]
7173
deploy-pip-snapshot:
@@ -115,6 +117,8 @@ release:
115117
export DEPLOY_NPM_USERNAME=$REPO_NPM_USERNAME
116118
export DEPLOY_NPM_PASSWORD=$REPO_NPM_PASSWORD
117119
export DEPLOY_NPM_EMAIL=$REPO_VATICLE_EMAIL
120+
# Point NPM cache to a temporary directory that is writeable under Bazel sandboxing
121+
sudo npm config -g set cache /tmp/npm-cache/
118122
bazel run --define version=$(cat VERSION) //grpc/nodejs:deploy-npm -- release
119123
dependencies: [deploy-github]
120124
deploy-pip-release:

0 commit comments

Comments
 (0)