diff --git a/deploy/release.groovy b/deploy/release.groovy index b44d42c64..ec4483d43 100644 --- a/deploy/release.groovy +++ b/deploy/release.groovy @@ -2,15 +2,13 @@ def ci (){ stage('build planner npm'){ container('ui'){ - sh 'npm install' - sh 'npm run build' - sh 'npm pack dist/' + sh 'npm run build-planner' } } stage('unit test'){ container('ui'){ - sh 'npm run test:unit' + sh 'npm run unit-test' } } diff --git a/package.json b/package.json index 5b8ef850c..157118cb8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "clean:all": "gulp clean:all", "reinstall": "rimraf node_modules && npm --force cache clean && npm install", "test:unit": "gulp test:unit", - "semantic-release": "semantic-release pre && gulp build && cp -r .git dist && npm publish dist/ && semantic-release post" + "semantic-release": "semantic-release pre && gulp build && cp -r .git dist && npm publish dist/ && semantic-release post", + "build-planner": "npm install && npm run build && npm pack dist/", + "unit-test": "npm run test:unit" }, "license": "Apache-2.0", "contributors": [