From 567045211a9b0554060ff8f277c62ca155d07fb9 Mon Sep 17 00:00:00 2001 From: Rihan Date: Tue, 9 Jul 2024 10:08:11 +0100 Subject: [PATCH] chore(deps): update `pnpm/action-setup` action to v4 (#1942) Co-authored-by: Benjamin Canac --- .github/workflows/ci-dev.yml | 38 ++++++++++++------------------------ .github/workflows/ci.yml | 35 ++++++++++----------------------- 2 files changed, 22 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci-dev.yml index bd407133..215f6657 100644 --- a/.github/workflows/ci-dev.yml +++ b/.github/workflows/ci-dev.yml @@ -19,40 +19,26 @@ jobs: strategy: matrix: os: [ubuntu-latest] # macos-latest, windows-latest - node: [18] + node: [20] env: NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }} steps: - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Install node + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} + cache: pnpm - - name: checkout - uses: actions/checkout@master - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - uses: dorny/paths-filter@v3 + - name: Filter changes + uses: dorny/paths-filter@v3 id: changes with: filters: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50469c5a..3c72438d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,38 +12,23 @@ jobs: strategy: matrix: os: [ubuntu-latest] # macos-latest, windows-latest - node: [18] + node: [20] env: NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }} steps: - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Install node + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - - name: checkout - uses: actions/checkout@master - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + cache: pnpm - name: Install dependencies run: pnpm install