chore(main): release bridge-ui 2.17.1 #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bridge UI Vercel Deploys | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - "packages/bridge-ui/**" | |
| push: | |
| tags: | |
| - "bridge-ui-hoodi-v*" | |
| - "bridge-ui-mainnet-v*" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify-production-tag: | |
| if: ${{ startsWith(github.ref, 'refs/tags/bridge-ui-hoodi-v') || startsWith(github.ref, 'refs/tags/bridge-ui-mainnet-v') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Verify tag is reachable from main | |
| run: | | |
| git fetch --no-tags origin +refs/heads/main:refs/remotes/origin/main | |
| if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/main; | |
| then | |
| echo "::error::Production bridge-ui tags must point to commits reachable from origin/main." | |
| exit 1 | |
| fi | |
| # Deployment name follow the pattern: deploy_<appname(bridge-ui)>_<network(devnet|hoodi|mainnet)>_<environment(preview|production)> | |
| # Internal Devnet | |
| deploy_bridge-ui_devnet_preview: | |
| if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.event.pull_request.head.repo.fork == false }} | |
| uses: ./.github/workflows/repo--vercel-deploy.yml | |
| with: | |
| environment: "preview" | |
| flags: "" | |
| secrets: | |
| vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_INTERNAL }} | |
| vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | |
| vercel_token: ${{ secrets.VERCEL_TOKEN }} | |
| # Hoodi testnet | |
| deploy_bridge-ui_hoodi_preview: | |
| if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && !startsWith(github.head_ref, 'dependabot') && github.event.pull_request.head.repo.fork == false }} | |
| uses: ./.github/workflows/repo--vercel-deploy.yml | |
| with: | |
| environment: "preview" | |
| flags: "" | |
| secrets: | |
| vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HOODI }} | |
| vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | |
| vercel_token: ${{ secrets.VERCEL_TOKEN }} | |
| deploy_bridge-ui_hoodi_production: | |
| if: ${{ startsWith(github.ref, 'refs/tags/bridge-ui-hoodi-v') }} | |
| needs: verify-production-tag | |
| uses: ./.github/workflows/repo--vercel-deploy.yml | |
| with: | |
| environment: "production" | |
| flags: "--prod" | |
| secrets: | |
| vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HOODI }} | |
| vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | |
| vercel_token: ${{ secrets.VERCEL_TOKEN }} | |
| # Mainnet | |
| deploy_bridge-ui_mainnet_preview: | |
| if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && !startsWith(github.head_ref, 'dependabot') && github.event.pull_request.head.repo.fork == false }} | |
| uses: ./.github/workflows/repo--vercel-deploy.yml | |
| with: | |
| environment: "preview" | |
| flags: "" | |
| secrets: | |
| vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_MAINNET }} | |
| vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | |
| vercel_token: ${{ secrets.VERCEL_TOKEN }} | |
| deploy_bridge-ui_mainnet_production: | |
| if: ${{ startsWith(github.ref, 'refs/tags/bridge-ui-mainnet-v') }} | |
| needs: verify-production-tag | |
| uses: ./.github/workflows/repo--vercel-deploy.yml | |
| with: | |
| environment: "production" | |
| flags: "--prod" | |
| secrets: | |
| vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_MAINNET }} | |
| vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | |
| vercel_token: ${{ secrets.VERCEL_TOKEN }} |