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:
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