This commit is contained in:
@@ -40,10 +40,22 @@ jobs:
|
||||
HOST="${SSH_HOST:-188.116.23.7}"
|
||||
ssh-keyscan -H "$HOST" >> ~/.ssh/known_hosts 2>/dev/null || true
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10.20.0
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: "pnpm"
|
||||
|
||||
# Requires pnpm-lock.yaml in the repo (run `pnpm install` locally once and commit the lockfile).
|
||||
- name: Install dependencies and build
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm run build
|
||||
|
||||
- name: Deploy dist to VPS dist
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user