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