From 9d50db52f78a6e824a6afe4c9d139357c6661ad8 Mon Sep 17 00:00:00 2001 From: Metal079 Date: Fri, 2 Jun 2023 16:58:25 -0500 Subject: [PATCH 1/3] Create angular.yml --- .github/workflows/angular.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/angular.yml diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml new file mode 100644 index 0000000..12f702e --- /dev/null +++ b/.github/workflows/angular.yml @@ -0,0 +1,25 @@ +name: Angular CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Dependencies + run: npm ci + + - name: Build + run: ng build --prod From 10ba85391ecee49f22c39bad24e50402f14e8664 Mon Sep 17 00:00:00 2001 From: Metal079 Date: Fri, 2 Jun 2023 17:02:20 -0500 Subject: [PATCH 2/3] Update angular.yml --- .github/workflows/angular.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index 12f702e..99d0385 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -19,7 +19,9 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install Dependencies - run: npm ci + run: | + npm ci + npm install -g @angular/cli - name: Build run: ng build --prod From 18c7307e23739f9103a69ce6ae61fe99856d81f9 Mon Sep 17 00:00:00 2001 From: Metal079 Date: Fri, 2 Jun 2023 17:05:15 -0500 Subject: [PATCH 3/3] Update angular.yml replaced --prod --- .github/workflows/angular.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index 99d0385..1423c8d 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -22,6 +22,6 @@ jobs: run: | npm ci npm install -g @angular/cli - + - name: Build - run: ng build --prod + run: ng build --configuration production