Skip to content

Commit

Permalink
Bugfix: CI CD build (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna authored Dec 5, 2023
1 parent db4e659 commit 4a0de49
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ on:
default: Cloudflare-Preview
public-url:
type: string
default: /
project-branch:
type: string
default: main
Expand Down Expand Up @@ -51,7 +50,7 @@ jobs:
npm ci
- name: Build
env:
PUBLIC_URL: "${{ inputs.public-url }}docs"
PUBLIC_URL: "${{ inputs.public-url }}/docs"
run: |
pushd apps/docs
npm run build
Expand Down Expand Up @@ -89,10 +88,10 @@ jobs:
run: npm version $(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo ${{ github.sha }} | cut -c -10)
- name: Build
env:
PUBLIC_URL: "${{ inputs.public-url }}advanced-tools"
PUBLIC_URL: "${{ inputs.public-url }}/advanced-tools"
NODE_OPTIONS: "--max-old-space-size=10240"
GENERATE_SOURCEMAP: false
REACT_APP_BASE_URL: "${{ inputs.public-url }}"
REACT_APP_BASE_URL: "${{ inputs.public-url }}/"
REACT_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
REACT_APP_SOLANA_API_URL: ${{ vars.REACT_APP_SOLANA_API_URL }}
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Portal Bridge [Preview]

on:
workflow_run:
workflows: ["Code Standard Checks"]
types:
- completed
on: pull_request
# workflow_run:
# workflows: ["Code Standard Checks"]
# types:
# - completed

jobs:
branch-sha:
Expand All @@ -27,7 +27,7 @@ jobs:
connect-branch: portal-bridge
advanced-tools-branch: advanced-tools
environment: Cloudflare-Preview
public-url: "/${{ needs.branch-sha.outputs.value }}/"
public-url: "/${{ needs.branch-sha.outputs.value }}"
project-branch: ${{ github.event.workflow_run.head_branch }}
secrets: inherit
needs:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Portal Bridge [Testnet]

on:
workflow_run:
workflows: ["Code Standard Checks"]
types:
- completed
on: pull_request
# workflow_run:
# workflows: ["Code Standard Checks"]
# types:
# - completed

jobs:
branch-sha:
Expand All @@ -27,7 +27,7 @@ jobs:
connect-branch: portal-bridge
advanced-tools-branch: advanced-tools
environment: Cloudflare-Testnet
public-url: "/${{ needs.branch-sha.outputs.value }}/"
public-url: "/${{ needs.branch-sha.outputs.value }}"
project-branch: ${{ github.event.workflow_run.head_branch }}
secrets: inherit
needs:
Expand Down
2 changes: 1 addition & 1 deletion apps/connect/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/connect/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@xlabs/portal-bridge-ui",
"private": true,
"version": "0.2.1",
"version": "0.2.2",
"type": "module",
"scripts": {
"dev:usdc-bridge": "vite --config ./vite.usdc-bridge.config.ts",
Expand Down

0 comments on commit 4a0de49

Please sign in to comment.