Skip to content

Commit 960f65d

Browse files
authored
Fix workflow (#1309)
1 parent e926963 commit 960f65d

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
NODE_OPTIONS: "--max-old-space-size=10240"
9898
GENERATE_SOURCEMAP: false
9999
REACT_APP_BASE_URL: "${{ inputs.public-url }}"
100-
REACT_APP_CLUSTER: ${{ inputs.network }}
100+
REACT_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
101101
REACT_APP_SOLANA_API_URL: ${{ vars.REACT_APP_SOLANA_API_URL }}
102102
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
103103
REACT_APP_WALLET_CONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLET_CONNECT_PROJECT_ID }}
@@ -186,10 +186,10 @@ jobs:
186186
pushd connect-loader/apps/connect
187187
npm ci
188188
echo 'VITE_APP_VERSION=$npm_package_version' > .env
189-
if [ ${{ inputs.network }} = "Mainnet" ]; then
190-
npm run build:usdc-bridge
191-
else
189+
if [ ${{ inputs.network }} = "Testnet" ]; then
192190
npm run build:usdc-bridge:testnet
191+
else
192+
npm run build:usdc-bridge
193193
fi
194194
- name: Upload Portal Bridge Artifact
195195
uses: actions/upload-artifact@v4
@@ -242,10 +242,10 @@ jobs:
242242
pushd connect-loader/apps/connect
243243
npm ci
244244
echo 'VITE_APP_VERSION=$npm_package_version' > .env
245-
if [ ${{ inputs.network }} = "Mainnet" ]; then
246-
npm run build:token-bridge
247-
else
245+
if [ ${{ inputs.network }} = "Testnet" ]; then
248246
npm run build:token-bridge:testnet
247+
else
248+
npm run build:token-bridge
249249
fi
250250
- name: Upload Portal Bridge Artifact
251251
uses: actions/upload-artifact@v4

.github/workflows/preview.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
environment: Cloudflare-Preview
2828
public-url: "/${{ needs.branch-sha.outputs.value }}"
2929
wac-url-template: "https://allez-xyz--usds-*.modal.run"
30-
network: "mainnet"
30+
network: "Mainnet"
3131
project-branch: ${{ github.event.pull_request.head.ref }}
3232
app-domain: preview.portalbridge.com
3333
secrets: inherit

.github/workflows/production.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
environment: ${{inputs.environment}}
3333
project-branch: main
3434
public-url: ''
35-
network: 'mainnet'
35+
network: 'Mainnet'
3636
wac-url-template: "https://allez-xyz--usds-*.modal.run"
3737
app-domain: portalbridge.com
3838
secrets: inherit

.github/workflows/testnet.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
advanced-tools-branch: advanced-tools
2727
environment: Cloudflare-Testnet
2828
public-url: "/${{ needs.branch-sha.outputs.value }}"
29-
network: "testnet"
29+
network: "Testnet"
3030
project-branch: ${{ github.event.pull_request.head.ref }}
3131
app-domain: testnet.portalbridge.com
3232
secrets: inherit

apps/connect/src/env/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const MAINNET_RPCS = {
4040

4141
export const PUBLIC_URL = envVars.VITE_PUBLIC_URL || "";
4242

43-
export const CLUSTER = envVars.VITE_APP_CLUSTER || "Testnet";
43+
export const CLUSTER = envVars.VITE_APP_CLUSTER || "Mainnet";
4444
export const wormholeConnectConfigCommon: Partial<WormholeConnectConfig> = {
4545
ui: {
4646
title: "",

0 commit comments

Comments
 (0)