From 07e9403a7f98f4d63a1dd57e586f405ba2317cc5 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:28:30 +0000 Subject: [PATCH] ci(github/workflows/deploy-api.yml): Update workflow for deploy-api Update workflow for deploy-api to use pnpm and node 20 Change fetch-depth to 6 Install pnpm version 9 Use Node.js version specified in matrix --- .github/workflows/deploy-api.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index 6b8b24554..9fdf3b27c 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -9,18 +9,27 @@ jobs: ci: name: Release runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + steps: - uses: actions/checkout@v4 with: fetch-depth: 6 - - uses: pnpm/action-setup@v2.4.0 - - uses: actions/setup-node@v3 + - name: Install pnpm + uses: pnpm/action-setup@v4 with: - node-version: 20 + version: 9 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} cache: 'pnpm' - - run: pnpm install --frozen-lockfile + - name: Install dependencies + run: pnpm install - name: Build run: pnpm api:build