adding Jenkinsfile with naive yarn build and lerna publish from github action

This commit is contained in:
Michael Shaw 2022-12-20 14:30:09 -05:00
parent e1f96c186b
commit 0350a656f1

34
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,34 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
script{
}
}
}
stage('Test') {
}
stage('Packaging') {
agent {
docker {
image 'cerc-io/foundation_node16:jenkinscicd'
}
}
environment {
// ??? NODE_AUTH_TOKEN: ${ secrets.PAT_PACKAGES }
}
steps {
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_PUBLISH_TOKEN }"'
sh 'lerna publish from-package --no-git-tag-version --yes'
}
}
}
}