mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-02-08 11:02:52 +00:00
Create Jenkinsfile2
This commit is contained in:
parent
e5da4da395
commit
6bd8542991
23
Jenkinsfile2
Normal file
23
Jenkinsfile2
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image 'node:16.13.1-alpine'
|
||||
args '-u root:root'
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Build Project') {
|
||||
steps {
|
||||
sh 'node --version'
|
||||
sh 'apk add git yarn npm'
|
||||
sh 'git config --global --add safe.directory /var/lib/jenkins/workspace/watcher-ts-testing'
|
||||
sh 'yarn'
|
||||
sh 'yarn build'
|
||||
sh 'npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/'
|
||||
sh 'lerna publish from-package --no-git-tag-version --yes'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user