From 12e9ec28aef8bd3e5b9417ec2616ffa04efcfe45 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 9 Jul 2024 11:01:29 +0200 Subject: [PATCH] chore(github): update `pnpm/action-setup` to v4 --- .github/workflows/ci-dev.yml | 36 +++++++++++------------------------- .github/workflows/ci.yml | 33 +++++++++------------------------ 2 files changed, 20 insertions(+), 49 deletions(-) diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci-dev.yml index 2c95617a..556feeb3 100644 --- a/.github/workflows/ci-dev.yml +++ b/.github/workflows/ci-dev.yml @@ -25,34 +25,20 @@ jobs: 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 ae918884..d194f9fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,32 +18,17 @@ jobs: 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