Skip to content

Commit

Permalink
ci(github/workflows/deploy-api.yml): Update workflow for deploy-api
Browse files Browse the repository at this point in the history
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
  • Loading branch information
taskylizard committed Jul 9, 2024
1 parent 2a5f85c commit 07e9403
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: pnpm install --frozen-lockfile
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm api:build
Expand Down

1 comment on commit 07e9403

@nbats
Copy link
Collaborator

@nbats nbats commented on 07e9403 Jul 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you tasky, hope you're doing well

Please sign in to comment.