Auto deploy fix?
This commit is contained in:
parent
6bd1a996ae
commit
057acbd569
@ -27,6 +27,12 @@ jobs:
|
||||
name: Build
|
||||
command: yarn build-datatable
|
||||
|
||||
- run:
|
||||
name: Copy README and LICENSE
|
||||
command: |
|
||||
cp LICENSE dist/ng-datatable/
|
||||
cp README.md dist/ng-datatable/
|
||||
|
||||
- store_artifacts:
|
||||
path: dist/ng-datatable
|
||||
|
||||
@ -34,9 +40,6 @@ jobs:
|
||||
command: |
|
||||
echo "${CIRCLE_BRANCH}"
|
||||
if [ "${CIRCLE_BRANCH}" == "production" ]; then
|
||||
cp README.md dist/ng-datatable/
|
||||
cp LICENSE dist/ng-datatable/
|
||||
cd dist/ng-datatable
|
||||
yarn ci-publish
|
||||
else
|
||||
echo "Only the production branch is published"
|
||||
|
@ -6,6 +6,7 @@
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"build-datatable": "ng build ng-datatable --prod",
|
||||
"ci-publish": "cd dist/ng-datatable && ci-publish",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e"
|
||||
|
Loading…
Reference in New Issue
Block a user