perf: Add NODE_ENV production for deployment #1020
Workflow file for this run
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: Build | |
on: | |
pull_request: | |
branches: '*' | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 9.12.2 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i --prod --ignore-scripts | |
- name: Build shared projects | |
run: pnpm build --filter=vitnode-shared | |
- name: Build Scripts | |
run: pnpm build:scripts | |
- name: Build Packages | |
run: pnpm build:packages | |
- name: Run config init | |
run: pnpm config:init:skip-database | |
- name: Build | |
run: pnpm build |