From dd95e09e33e5f2c55e2030175d6132fbe6517625 Mon Sep 17 00:00:00 2001 From: mivaylo Date: Tue, 12 Mar 2024 10:26:21 +0200 Subject: [PATCH] feat: add workflow build with angular 17 --- .github/workflows/pr-build.yml | 10 +++++++--- projects/angular/package.json | 6 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index ac3a8bb453..fefcac3b3a 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - angular: ['Angular v15', 'Angular v16'] + angular: ['Angular v15', 'Angular v16', 'Angular v17'] steps: - name: Checkout uses: actions/checkout@v3 @@ -22,11 +22,15 @@ jobs: - name: Install Dependencies run: npm ci - name: Update to Angular v16 - if: ${{matrix.angular == 'Angular v16'}} + if: ${{matrix.angular == 'Angular v16' || matrix.angular == 'Angular v17'}} run: | npx ng update @angular/core@16 @angular/common@16 @angular/cli@16 @angular/cdk@16 --force + - name: Update to Angular v17 + if: ${{matrix.angular == 'Angular v17'}} + run: | + npx ng update @angular/core@17 @angular/common@17 @angular/cli@17 @angular/cdk@17 --allow-dirty --force - name: Disable Storybook Build - if: ${{matrix.angular == 'Angular v16'}} + if: ${{matrix.angular != 'Angular v15'}} run: node ./scripts/clear-npm-script.js _build:storybook - name: Lint if: ${{matrix.angular == 'Angular v15'}} diff --git a/projects/angular/package.json b/projects/angular/package.json index 43822ebf34..92348bd9be 100644 --- a/projects/angular/package.json +++ b/projects/angular/package.json @@ -18,9 +18,9 @@ "url": "https://github.com/vmware-clarity/ng-clarity/issues" }, "peerDependencies": { - "@angular/cdk": "15 || 16", - "@angular/common": "15 || 16", - "@angular/core": "15 || 16", + "@angular/cdk": "15 || 16 || 17", + "@angular/common": "15 || 16 || 17", + "@angular/core": "15 || 16 || 17", "@cds/core": ">= 6.7.0" } }