diff --git a/.github/workflows/approve-snapshots.yml b/.github/workflows/approve-snapshots.yml index 16ad8859d..cd9504299 100644 --- a/.github/workflows/approve-snapshots.yml +++ b/.github/workflows/approve-snapshots.yml @@ -22,22 +22,25 @@ jobs: with: ref: ${{ steps.getBranchName.outputs.branch }} - - name: Install pnpm ⚙ī¸ - uses: pnpm/action-setup@v2 - with: - version: 7.x - - name: Use Node 16 🕹ī¸ uses: actions/setup-node@v3 with: node-version-file: 'package.json' - cache: 'pnpm' - - name: Cache Cypress binary 📌 + - name: Install pnpm ⚙ī¸ + uses: pnpm/action-setup@v2 + with: + version: 7.x + + - name: Restore cache 📌 uses: actions/cache@v3 with: - path: ~/.cache/Cypress - key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + path: | + ~/setup-pnpm/node_modules/.bin/store + ~/.cache/Cypress + key: cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- - name: Install dependencies ⚙ī¸ run: pnpm install --frozen-lockfile diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index c72942bd9..ea7485fcd 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -16,22 +16,25 @@ jobs: - name: Checkout 🏷ī¸ uses: actions/checkout@v3 - - name: Install pnpm ⚙ī¸ - uses: pnpm/action-setup@v2 - with: - version: 7.x - - name: Use Node 16 🕹ī¸ uses: actions/setup-node@v3 with: node-version-file: 'package.json' - cache: 'pnpm' - - name: Cache Cypress binary 📌 + - name: Install pnpm ⚙ī¸ + uses: pnpm/action-setup@v2 + with: + version: 7.x + + - name: Restore cache 📌 uses: actions/cache@v3 with: - path: ~/.cache/Cypress - key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + path: | + ~/setup-pnpm/node_modules/.bin/store + ~/.cache/Cypress + key: cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- - name: Install dependencies ⚙ī¸ run: pnpm install --frozen-lockfile @@ -48,22 +51,25 @@ jobs: - name: Checkout 🏷ī¸ uses: actions/checkout@v3 - - name: Install pnpm ⚙ī¸ - uses: pnpm/action-setup@v2 - with: - version: 7.x - - name: Use Node 16 🕹ī¸ uses: actions/setup-node@v3 with: node-version-file: 'package.json' - cache: 'pnpm' - - name: Cache Cypress binary 📌 + - name: Install pnpm ⚙ī¸ + uses: pnpm/action-setup@v2 + with: + version: 7.x + + - name: Restore cache 📌 uses: actions/cache@v3 with: - path: ~/.cache/Cypress - key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + path: | + ~/setup-pnpm/node_modules/.bin/store + ~/.cache/Cypress + key: cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- - name: Install dependencies ⚙ī¸ run: pnpm install --frozen-lockfile @@ -82,22 +88,25 @@ jobs: - name: Checkout 🏷ī¸ uses: actions/checkout@v3 - - name: Install pnpm ⚙ī¸ - uses: pnpm/action-setup@v2 - with: - version: 7.x - - name: Use Node 16 🕹ī¸ uses: actions/setup-node@v3 with: node-version-file: 'package.json' - cache: 'pnpm' - - name: Cache Cypress binary 📌 + - name: Install pnpm ⚙ī¸ + uses: pnpm/action-setup@v2 + with: + version: 7.x + + - name: Restore cache 📌 uses: actions/cache@v3 with: - path: ~/.cache/Cypress - key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + path: | + ~/setup-pnpm/node_modules/.bin/store + ~/.cache/Cypress + key: cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- - name: Install dependencies ⚙ī¸ run: pnpm install --frozen-lockfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d59f9abd..07b805829 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,23 +18,26 @@ jobs: with: TAG_PREFIX: v - - name: Install pnpm ⚙ī¸ - uses: pnpm/action-setup@v2 - with: - version: 7.x - - name: Use Node 16 🕹ī¸ uses: actions/setup-node@v3 with: node-version-file: 'package.json' registry-url: 'https://registry.npmjs.org' - cache: 'pnpm' - - name: Cache Cypress binary 📌 + - name: Install pnpm ⚙ī¸ + uses: pnpm/action-setup@v2 + with: + version: 7.x + + - name: Restore cache 📌 uses: actions/cache@v3 with: - path: ~/.cache/Cypress - key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + path: | + ~/setup-pnpm/node_modules/.bin/store + ~/.cache/Cypress + key: cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- - name: Install dependencies ⚙ī¸ run: pnpm install --frozen-lockfile