From 077b279b878fead329f968bca62923280f63efc0 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 21 Dec 2022 15:33:57 -0500 Subject: [PATCH] set PAT before yarn --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 563c8358..0e03d811 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,6 +14,10 @@ pipeline { } steps { + sh 'npm config set -- "//npm.pkg.github.com/:_authToken" "${ GITHUB_BASTION_PAT }"' + //sh 'echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc' + //sh 'echo "registry=https://npm.pkg.github.com/" >> ~/.npmrc' + //sh 'echo "always-auth=true" >> ~/.npmrc' sh 'yarn' sh 'yarn build' sh 'npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/'