feat: setup libs
Some checks failed
Prepare pull request / prepare (pull_request) Failing after 56s

This commit is contained in:
Hewston Fox
2026-03-09 00:50:24 +02:00
parent 06129b821e
commit 6af8cef67d
22 changed files with 2498 additions and 1057 deletions

View File

@@ -0,0 +1,36 @@
# Check and format a branch on a pull request created.
name: Prepare pull request
on:
pull_request:
permissions:
contents: read
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Setup Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.30.3
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Format
run: pnpm run fmt
- uses: autofix-ci/action@1.3.2

View File

@@ -43,19 +43,19 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.20.0
version: 10.30.3
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: ".nvmrc"
cache: "pnpm"
# Requires pnpm-lock.yaml in the repo (run `pnpm install` locally once and commit the lockfile).
- name: Install dependencies and build
run: |
pnpm install --frozen-lockfile
pnpm run build
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Deploy dist to VPS dist
run: |
@@ -64,4 +64,4 @@ jobs:
REMOTE_DIR="/opt/app/frontend/dist"
ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=accept-new "$USER@$HOST" "mkdir -p $REMOTE_DIR"
scp -i ~/.ssh/deploy_key -o StrictHostKeyChecking=accept-new -r dist/* "$USER@$HOST:$REMOTE_DIR/"
echo "Deployed to $USER@$HOST:$REMOTE_DIR/"
echo "Deployed to $USER@$HOST:$REMOTE_DIR/"