Skip to content

Add Hardhat Ignition to hardhat-toolbox #1242

Add Hardhat Ignition to hardhat-toolbox

Add Hardhat Ignition to hardhat-toolbox #1242

name: Compile with typescript v4
on:
push:
branches: main
pull_request:
branches:
- "**"
workflow_dispatch:
jobs:
compile_with_typescript_v4:
name: Compile with typescript v4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 16
cache: "pnpm"
- name: Remove packages that can't be compiled with TypeScript v4
run: rm -fr packages/hardhat-viem packages/hardhat-toolbox-viem packages/hardhat-toolbox packages/hardhat-web3-v4
- name: Remove packages that can't be compiled with TypeScript v4 from the build script
run: sed -i 's/packages\/\(hardhat-viem\|hardhat-toolbox\|hardhat-toolbox-viem\|hardhat-web3-v4\) *//g' package.json
- name: Install typescript v4 in all packages
run: |
sed -i 's/"typescript": "~5.0.0"/"typescript": "^4.0.0"/' package.json packages/*/package.json && pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build