Skip to content

Commit

Permalink
gh-actions: Add git sha to frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jun 6, 2024
1 parent f81a443 commit d1e21b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ui-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
REACT_APP_DISABLED_ROUTES_NO_LIQUIDITY_WARNING_MESSAGE: ${{ vars.REACT_APP_DISABLED_ROUTES_NO_LIQUIDITY_WARNING_MESSAGE }}
REACT_APP_BLOCKLIST_ENABLED: ${{ vars.REACT_APP_BLOCKLIST_ENABLED }}
REACT_APP_BNC_DAPP_ID: ${{ secrets.REACT_APP_BNC_DAPP_ID }}
REACT_APP_GIT_SHA: ${{ github.sha }}
run: pnpm --filter frontend... build

- name: Write commit file
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/config/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { providers } from 'ethers'

export const showBannerMessage = process.env.REACT_APP_SHOW_BANNER_MESSAGE ?? ''
export const gitRevision = process.env.REACT_APP_GIT_SHA ?? ''
export const gitRevision = (process.env.REACT_APP_GIT_SHA ?? '')?.slice(0, 7)

// show rewards header nav route
let showRewards = true
Expand Down

0 comments on commit d1e21b6

Please sign in to comment.