From 0350a656f1e7c1e24d9adcae8ae7aca1289f8bef Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 20 Dec 2022 14:30:09 -0500 Subject: [PATCH] adding Jenkinsfile with naive yarn build and lerna publish from github action --- Jenkinsfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..9d769af6 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } +} \ No newline at end of file