From fa1c243d9b68ea86235385d4b518b916ecdce04e Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Fri, 17 Nov 2023 11:31:22 -0800 Subject: [PATCH] feat: add pnpm setup action --- .github/workflows/unlighthouse.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unlighthouse.yaml b/.github/workflows/unlighthouse.yaml index 1e07f8b..b68a56f 100644 --- a/.github/workflows/unlighthouse.yaml +++ b/.github/workflows/unlighthouse.yaml @@ -29,10 +29,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.1.1 + - name: Setup pnpm + uses: pnpm/action-setup@v2.4.0 + with: + version: latest + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4.0.0 with: node-version: ${{ matrix.node-version }} + cache: 'pnpm' - name: Retrieve Vercel Preview URL uses: zentered/vercel-preview-url@v1.1.9 @@ -61,14 +67,14 @@ jobs: --build-static - name: Upload report to Cloudflare pages - uses: cloudflare/wrangler-action@v3.3.2 + uses: cloudflare/wrangler-action@2.0.0 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} command: pages deploy .unlighthouse --project-name="${{ env.CLOUDFLARE_PROJECT }}" --branch=${{ env.CLOUDFLARE_BRANCH }} - name: Create result content id: create_result_content - uses: actions/github-script@v7.0.0 + uses: actions/github-script@v6.4.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: |