diff --git a/.github/workflows/template.yml b/.github/workflows/template.yml index 765c42c..5140d2e 100644 --- a/.github/workflows/template.yml +++ b/.github/workflows/template.yml @@ -12,18 +12,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '18' - - name: Cache node modules - uses: actions/cache@v3 - id: cache - env: - cache-name: cache-node-modules - with: - path: node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} - - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: yarn install --frozen-lockfile - - name: Install correct version of nuxt-bundle + - name: Install dependencies and correct version of nuxt-bundle run: yarn add ${{ github.repository }}#${{ github.ref }} - name: Build run: yarn build @@ -42,18 +31,7 @@ jobs: node-version: '18' - name: Install Vercel CLI run: npm install --global vercel@latest - - name: Cache node modules - uses: actions/cache@v3 - id: cache - env: - cache-name: cache-node-modules - with: - path: node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} - - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: yarn install --frozen-lockfile - - name: Install correct version of nuxt-bundle + - name: Install dependencies and correct version of nuxt-bundle run: yarn add ${{ github.repository }}#${{ github.ref }} - name: Pull Vercel Environment Information run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}