search for the Jenkins Way

This commit is contained in:
Michael Shaw 2022-12-21 15:45:25 -05:00
parent b68cac1d38
commit 42edcf9d39

7
Jenkinsfile vendored
View File

@ -10,15 +10,16 @@ pipeline {
}
environment {
NODE_AUTH_TOKEN = "${ GITHUB_BASTION_PAT }"
NODE_AUTH_TOKEN = credentials('GITHUB_BASTION_PAT')
GITEA_JENKINS_PUBLISH = credentials('GITEA_JENKINS_PUBLISH')
}
steps {
sh "npm config set -- \"//npm.pkg.github.com/:_authToken\" \"${ GITHUB_BASTION_PAT }\""
sh "npm config set -- \"//npm.pkg.github.com/:_authToken\" \"$NODE_AUTH_TOKEN\""
sh 'yarn'
sh 'yarn build'
sh 'npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/'
sh "npm config set -- \"//git.vdb.to/api/packages/cerc-io/npm/:_authToken\" \"${ GITEA_JENKINS_PUBLISH }\""
sh "npm config set -- \"//git.vdb.to/api/packages/cerc-io/npm/:_authToken\" \"$GITEA_JENKINS_PUBLISH\""
sh 'lerna publish from-package --no-git-tag-version --yes'
}
}