Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:hop-protocol/hop into production
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed May 15, 2024
2 parents 5a2062c + d038498 commit 3a16903
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ui-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Build and Deploy Frontend UIs
on:
push:
branches:
- TODO
# paths:
# - 'packages/hop-node/**'
- develop
- production
paths:
- 'packages/frontend/**'

# TODO: Add sepolia
# TODO: DRY if statements
Expand All @@ -20,19 +21,21 @@ jobs:
- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b

- name: Setup workflow
uses: ./.github/actions/setup

- name: Check versions
id: check-versions
uses: ./.github/actions/check-version
with:
package-name: frontend

- name: Setup workflow
uses: ./.github/actions/setup

- name: Install package
if: steps.check-versions.outputs.package-version-changed == 'true' || matrix.env-name != 'production'
run: pnpm --filter-prod frontend... install

- name: Build the app
if: steps.check-versions.outputs.package-version-changed == 'true' || matrix.env-name != 'production'
env:
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
REACT_APP_NETWORK: ${{ secrets.REACT_APP_NETWORK }}
Expand All @@ -50,14 +53,15 @@ jobs:
run: pnpm --filter frontend... build

- name: Write commit file
if: steps.check-versions.outputs.package-version-changed == 'true' || matrix.env-name != 'production'
uses: DamianReeves/write-file-action@a432935930b2e351ec2d2792fc220717b656ec1c
with:
path: packages/frontend/dist/cachebust
write-mode: overwrite
contents: ${{ github.sha }}

- name: Pin to IPFS on Pinata
if: steps.check-versions.outputs.npm-version-changed == 'true' || matrix.env-name != 'production'
if: steps.check-versions.outputs.package-version-changed == 'true' || matrix.env-name != 'production'
id: upload
uses: anantaramdas/ipfs-pinata-deploy-action@9f9c3b42b5d360352c4b768d98aff1309d62faa0
with:
Expand All @@ -76,7 +80,7 @@ jobs:
fi
- name: Update CloudFlare DNS with new IPFS hash
if: steps.check-versions.outputs.npm-version-changed == 'true' || matrix.env-name != 'production'
if: steps.check-versions.outputs.package-version-changed == 'true' || matrix.env-name != 'production'
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
RECORD_DOMAIN: 'hop.exchange'
Expand All @@ -87,14 +91,14 @@ jobs:
cid: ${{ steps.upload.outputs.hash }}

- name: Convert CIDv0 to CIDv1
if: steps.check-versions.outputs.npm-version-changed == 'true' || matrix.env-name != 'production'
if: steps.check-versions.outputs.package-version-changed == 'true' || matrix.env-name != 'production'
id: convert_cidv0
uses: uniswap/convert-cidv0-cidv1@c53a468c3602a85dd979c02ec4ddd9102849395e
with:
cidv0: ${{ steps.upload.outputs.hash }}

- name: Create GitHub Release
if: steps.check-versions.outputs.npm-version-changed == 'true' || matrix.env-name != 'production'
if: steps.check-versions.outputs.package-version-changed == 'true' || matrix.env-name != 'production'
env:
CIDv0: ${{ steps.upload.outputs.hash }}
CIDv1: ${{ steps.convert_cidv0.outputs.cidv1 }}
Expand Down
2 changes: 2 additions & 0 deletions packages/frontend/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ if (process.env.REACT_APP_NETWORK === 'goerli') {
showRewards = false
}

const cacheBuster: number = 1

export { showRewards }

export const transferTimes = {
Expand Down
2 changes: 1 addition & 1 deletion packages/v2-explorer-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/v2-explorer-backend",
"version": "0.0.4",
"version": "0.0.5",
"description": "The Hop v2 explorer backend",
"main": "dist/index.js",
"author": "Authereum Labs, Inc.",
Expand Down

0 comments on commit 3a16903

Please sign in to comment.