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: build:
pre_build: pre_build:
- npm install -g pnpm@latest - npm install -g pnpm@latest
- export PNPM_HOME="/root/.local/share/pnpm"
- export PATH="$PNPM_HOME:$PATH"
steps: steps:
- name: Verify pnpm
run: which pnpm && pnpm --version
- name: Install dependencies - name: Install dependencies
run: pnpm install --no-frozen-lockfile run: pnpm install --no-frozen-lockfile
- name: Generate Prisma Client - name: Generate Prisma Client
run: pnpx prisma generate run: pnpx prisma generate
- name: Build application - name: Build application
run: pnpm run build run: pnpm run build
start:
cmd: pnpm start
+10 -5
View File
@@ -1,19 +1,24 @@
[phases.setup] [phases.setup]
nixPkgs = ['nodejs_18', 'openssl'] nixPkgs = ['nodejs_18', 'openssl']
cmds = [ cmds = [
'npm install -g pnpm@latest' 'npm install -g pnpm@latest',
'export PATH="/root/.local/share/pnpm:$PATH"'
] ]
[phases.install] [phases.install]
cmds = [ cmds = [
'pnpm install --no-frozen-lockfile' '/root/.local/bin/pnpm install --no-frozen-lockfile'
] ]
[phases.build] [phases.build]
cmds = [ cmds = [
'pnpx prisma generate', '/root/.local/bin/pnpx prisma generate',
'pnpm run build' '/root/.local/bin/pnpm run build'
] ]
[start] [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