diff --git a/.github/workflows/firebase-deploy.yml b/.github/workflows/firebase-deploy.yml index 49d37c6..74630d0 100644 --- a/.github/workflows/firebase-deploy.yml +++ b/.github/workflows/firebase-deploy.yml @@ -20,7 +20,7 @@ concurrency: jobs: build: - name: ๐Ÿงฑ Build and Test + name: ๐Ÿงช Test before Build runs-on: ubuntu-latest steps: @@ -39,9 +39,6 @@ jobs: - name: ๐Ÿงช Run Tests with Vitest run: npm run test:ci - - name: ๐Ÿ”จ Build Project - run: npm run build - deploy: name: ๐Ÿš€ Deploy to Firebase needs: build # Only run this job if the build job is successful @@ -55,6 +52,13 @@ jobs: uses: actions/setup-node@v4 with: node-version: 'lts/*' + cache: 'npm' + + - name: ๐Ÿ“‚ Install Packages + run: npm ci + + - name: ๐Ÿงฑ Build + run: npm run build - name: ๐ŸŒ Install Firebase Tools run: npm install -g firebase-tools