From edf7b1d7c5c65849acdd87030bcee17f2619abea Mon Sep 17 00:00:00 2001 From: SvetlanaMuravlova Date: Fri, 16 Sep 2022 14:45:38 +0300 Subject: [PATCH] fix(ci): fix build commands --- .github/workflows/on-publish.yml | 3 +-- .github/workflows/on-push-or-pull.yml | 3 +-- angular.json | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/on-publish.yml b/.github/workflows/on-publish.yml index dd5e240..1875341 100644 --- a/.github/workflows/on-publish.yml +++ b/.github/workflows/on-publish.yml @@ -50,8 +50,7 @@ jobs: path: | dist key: dist-${{ github.run_id }} - - run: npx ng build --prod - npx nx run ng2-file-upload:build + - run: npx nx run ng2-file-upload-demo:build # update release notes in github update_release_draft: diff --git a/.github/workflows/on-push-or-pull.yml b/.github/workflows/on-push-or-pull.yml index 7ec22de..714b798 100644 --- a/.github/workflows/on-push-or-pull.yml +++ b/.github/workflows/on-push-or-pull.yml @@ -59,8 +59,7 @@ jobs: with: path: ${{ env.CACHE_DIST_PATH }} key: dist-${{ github.run_id }} - - run: npx ng build --prod - npx nx run ng2-file-upload:build + - run: npx nx run ng2-file-upload-demo:build # run unit tests unit_tests_with_coverage: diff --git a/angular.json b/angular.json index af5ad10..788ef17 100644 --- a/angular.json +++ b/angular.json @@ -114,12 +114,12 @@ ] } }, - "defaultConfiguration": "" + "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "browserTarget": "ng2-file-upload-demo:build" + "browserTarget": "ng2-file-upload-demo:build:production" }, "configurations": { "production": {