From 96a1857da13043d80fa4420da3241a52c079533e Mon Sep 17 00:00:00 2001 From: giancarlo Date: Thu, 11 Apr 2024 16:26:04 +0800 Subject: [PATCH] Update GitHub Workflow to use pnpm action This commit updates the workflow configuration to use the 'pnpm/action-setup' GitHub Action. This eliminates the need for a separate step to globally install pnpm, simplifying the dependency installation process. Both the setup and the use of pnpm have been streamlined. --- .github/workflows/workflow.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ed1dfaa42..d08a079d2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -12,6 +12,10 @@ jobs: with: fetch-depth: 2 + - uses: pnpm/action-setup@v2 + with: + version: 6.32.9 + - uses: actions/setup-node@v4 with: node-version: lts/* @@ -25,7 +29,7 @@ jobs: ${{ runner.os }}-turbo- - name: Install dependencies - run: npm install -g pnpm && pnpm install + run: pnpm install - name: Typecheck run: pnpm run typecheck - name: Lint @@ -39,6 +43,10 @@ jobs: with: fetch-depth: 2 + - uses: pnpm/action-setup@v2 + with: + version: 6.32.9 + - uses: actions/cache@v4 with: path: .turbo @@ -52,7 +60,7 @@ jobs: cache: 'pnpm' - name: Install dependencies - run: npm install -g pnpm && pnpm install + run: pnpm install - name: Install Playwright Browsers run: pnpm exec ./apps/e2e/node_modules/.bin/playwright install --with-deps - name: Run Playwright tests