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:
parent
2a5f85c7ba
commit
07e9403a7f
17
.github/workflows/deploy-api.yml
vendored
17
.github/workflows/deploy-api.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user