mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-05-04 22:52:05 +00:00
adding Jenkinsfile with naive yarn build and lerna publish from github action
This commit is contained in:
parent
e1f96c186b
commit
0350a656f1
34
Jenkinsfile
vendored
Normal file
34
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user