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