Skip to content

Commit

Permalink
ci: install only once and disable cache (#113)
Browse files Browse the repository at this point in the history
Only install once with the correct `nuxt-bundle` version set and disable install cache, as it won't help if we install another version of `nuxt-bundle` anyway.
  • Loading branch information
jojomatik authored Feb 3, 2024
1 parent b83b879 commit 6a6ef00
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 6a6ef00

Please sign in to comment.