Skip to content

chore(main): release fork-diff 0.7.3 #223

chore(main): release fork-diff 0.7.3

chore(main): release fork-diff 0.7.3 #223

name: Fork Diff Preview
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_FORK_DIFF }}
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/fork-diff/**"
branches-ignore:
- release-please--branches--**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy-fork-diff-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}}
runs-on: [arc-runner-set]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies
- name: Install Vercel CLI
run: pnpm add --global vercel@53.3.2
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Read tag versions from JSON
run: |
echo "TAG_VERSION=$(jq -r '.tagVersion' packages/fork-diff/version_config.json)" >> $GITHUB_ENV
echo "TAIKO_GETH_VERSION=$(jq -r '.gethVersion' packages/fork-diff/version_config.json)" >> $GITHUB_ENV
- name: Clone forkdiff
run: git clone --branch patch-1 https://github.com/taikoxyz/forkdiff.git
- name: Clone taiko-geth
run: git clone --branch ${{ env.TAIKO_GETH_VERSION }} https://github.com/taikoxyz/taiko-geth.git
- name: Clone go-ethereum
run: git clone --branch ${{ env.TAG_VERSION }} https://github.com/ethereum/go-ethereum.git
- name: Replace tag version in configuration file
run: |
sed -i "s/{{ TAG_VERSION }}/${{ env.TAG_VERSION }}/g" packages/fork-diff/fork.yaml
sed -i "s/{{ TAIKO_GETH_VERSION }}/${{ env.TAIKO_GETH_VERSION }}/g" packages/fork-diff/fork.yaml
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Generate index.html with forkdiff
run: |
cat packages/fork-diff/fork.yaml
cp packages/fork-diff/fork.yaml forkdiff/fork.yaml
cd forkdiff
go run main.go -repo ../taiko-geth/ -upstream-repo ../go-ethereum/
- name: Move generated index.html to vercel project root
run: |
mv forkdiff/index.html packages/fork-diff/index.html
- name: Deploy Project Artifacts to Vercel
run: vercel --token=${{ secrets.VERCEL_TOKEN }}