This commit is contained in:
Evandro committed 2024-11-28 13:17:14 -03:00
1 parent 3341f538ac
commit 6c65d7f044
3 files changed
+28 -11

No files matched your search

+5 -6
View File
@@ -1,15 +1,14 @@
build:
pre_build:
- npm install -g pnpm@latest
- export PNPM_HOME="/root/.local/share/pnpm"
- export PATH="$PNPM_HOME:$PATH"
steps:
- name: Verify pnpm
run: which pnpm && pnpm --version
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Generate Prisma Client
run: pnpx prisma generate
- name: Build application
run: pnpm run build
start:
cmd: pnpm start
run: pnpm run build
+10 -5
View File
@@ -1,19 +1,24 @@
[phases.setup]
nixPkgs = ['nodejs_18', 'openssl']
cmds = [
'npm install -g pnpm@latest'
'npm install -g pnpm@latest',
'export PATH="/root/.local/share/pnpm:$PATH"'
]
[phases.install]
cmds = [
'pnpm install --no-frozen-lockfile'
'/root/.local/bin/pnpm install --no-frozen-lockfile'
]
[phases.build]
cmds = [
'pnpx prisma generate',
'pnpm run build'
'/root/.local/bin/pnpx prisma generate',
'/root/.local/bin/pnpm run build'
]
[start]
cmd = 'pnpm start'
cmd = '/root/.local/bin/pnpm start'
[phases.setup.env]
PATH = "/root/.local/share/pnpm:/root/bin:${PATH}"
PNPM_HOME = "/root/.local/share/pnpm"
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
set -e
# Install pnpm globally
npm install -g pnpm@latest
# Add pnpm to PATH
export PNPM_HOME="/root/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
# Verify installation
which pnpm
pnpm --version