Skip to content

Instantly share code, notes, and snippets.

@connieho15
Created December 22, 2017 19:09
Show Gist options
  • Save connieho15/88dbb7ebacda709a3f5a277f63f5c8ac to your computer and use it in GitHub Desktop.
Save connieho15/88dbb7ebacda709a3f5a277f63f5c8ac to your computer and use it in GitHub Desktop.
stage('npm install') {
sh "yarn install"
}
stage('unit tests'){
sh "yarn test"
}
if (env.BRANCH_NAME == 'master'){
stage('push to artifactory') {
sh "yarn run precompile"
sh "npm version ${env.RELEASE_TYPE}"
sh "git push origin HEAD:master --follow-tags"
sh "npm publish"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment