upgrade pnpm #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Builds | |
on: | |
# Push to any tracked branches | |
push: | |
branches: [main] | |
# PRs only on main branch | |
pull_request: | |
branches: [main] | |
# Manual trigger from the UI | |
workflow_dispatch: | |
inputs: | |
message: | |
description: 'Message for build' | |
required: true | |
jobs: | |
build: | |
name: Ferdium Server Build | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js specified in the '.nvmrc' file | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install node dependencies recursively | |
uses: nick-fields/retry@v3 | |
with: | |
command: pnpm i | |
timeout_minutes: 15 | |
max_attempts: 3 | |
retry_on: error | |
- name: Check code style and formatting | |
run: | | |
pnpm typecheck | |
pnpm lint | |
pnpm test | |
pnpm run build |