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
This commit is contained in:
taskylizard 2024-07-09 10:28:30 +00:00
parent 2a5f85c7ba
commit 07e9403a7f
No known key found for this signature in database
GPG Key ID: 1820131ED1A24120

View File

@ -9,18 +9,27 @@ jobs:
ci: ci:
name: Release name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 6 fetch-depth: 6
- uses: pnpm/action-setup@v2.4.0
- uses: actions/setup-node@v3 - name: Install pnpm
uses: pnpm/action-setup@v4
with: 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' cache: 'pnpm'
- run: pnpm install --frozen-lockfile - name: Install dependencies
run: pnpm install
- name: Build - name: Build
run: pnpm api:build run: pnpm api:build