Skip to content

Commit 061970b

Browse files
committed
fix(ci): add critical environment variables and enhanced debugging for build step
1 parent 00e8682 commit 061970b

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,31 @@ jobs:
7878
cache: 'npm'
7979

8080
- name: Install dependencies
81-
run: npm ci
81+
run: |
82+
echo "Installing dependencies..."
83+
npm ci
84+
echo "Dependencies installed successfully"
85+
echo "Checking for any dependency issues..."
86+
npm ls --depth=0
8287
8388
- name: Build application
84-
run: npm run build
89+
env:
90+
NEXT_PUBLIC_STELLAR_NETWORK: TESTNET
91+
NEXT_PUBLIC_STELLAR_HORIZON_TESTNET: https://horizon-testnet.stellar.org
92+
NEXT_PUBLIC_STELLAR_HORIZON_PUBLIC: https://horizon.stellar.org
93+
NEXT_PUBLIC_DEFAULT_ASSET_CODE: USDC
94+
NEXT_PUBLIC_DEFAULT_ASSET_ISSUER: CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA
95+
NEXT_PUBLIC_DEFAULT_ASSET_DECIMALS: 7
96+
NEXT_PUBLIC_APP_NAME: Stellar Nexus
97+
NEXT_PUBLIC_APP_VERSION: 0.1.0
98+
NODE_ENV: production
99+
run: |
100+
echo "Environment variables set:"
101+
echo "NODE_ENV: $NODE_ENV"
102+
echo "NEXT_PUBLIC_STELLAR_NETWORK: $NEXT_PUBLIC_STELLAR_NETWORK"
103+
echo "Starting build..."
104+
npm run build
105+
echo "Build completed with exit code: $?"
85106
86107
- name: List build directory contents
87108
run: |

0 commit comments

Comments
 (0)