From cd0a20f279e54de763c3ebceee8b4aa7916aeabb Mon Sep 17 00:00:00 2001 From: Kashiwa <13825170+ksw2000@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:31:44 +0800 Subject: [PATCH] fix: npm run lint should be run after npm ci --- .github/workflows/cd.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index e4d9e48..a2926ae 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -12,11 +12,10 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 20 - - name: lint - run: npm run lint - name: build run: | npm ci + npm run lint npx ng add angular-cli-ghpages --skip-confirmation npx ng build --base-href=/${{ github.event.repository.name }}/ - name: commit and push @@ -37,11 +36,10 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 - - name: lint - run: npm run lint - name: build run: | npm ci + npm run lint npx ng add angular-cli-ghpages --skip-confirmation npx ng build --base-href=/2024/ - name: Deploy to Firebase Hosting