This commit is contained in:
@@ -40,10 +40,22 @@ jobs:
|
|||||||
HOST="${SSH_HOST:-188.116.23.7}"
|
HOST="${SSH_HOST:-188.116.23.7}"
|
||||||
ssh-keyscan -H "$HOST" >> ~/.ssh/known_hosts 2>/dev/null || true
|
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
|
- name: Install dependencies and build
|
||||||
run: |
|
run: |
|
||||||
npm install
|
pnpm install --frozen-lockfile
|
||||||
npm run build
|
pnpm run build
|
||||||
|
|
||||||
- name: Deploy dist to VPS dist
|
- name: Deploy dist to VPS dist
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user