add npm install for solidity packages #4
This file contains 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: Deploy Solidity Smart Contract | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
working-directory: packages/evm | |
- name: Install dependencies | |
run: npm ci | |
working-directory: packages/evm/solidity | |
- name: Compile contracts | |
run: npx hardhat compile | |
working-directory: packages/evm/solidity | |
# - name: Run tests | |
# run: npx hardhat test | |
# deploy eth contracts | |
- name: Deploy to Sepolia testnet | |
run: npx hardhat run scripts/deployETH.js --network sepolia | |
working-directory: packages/evm/solidity | |
- name: Deploy to Optimism Sepolia testnet | |
run: npx hardhat run scripts/deployETH.js --network optimismSepolia | |
working-directory: packages/evm/solidity | |
- name: Deploy to Arbitrum Sepolia testnet | |
run: npx hardhat run scripts/deployETH.js --network arbitrumSepolia | |
working-directory: packages/evm/solidity | |
- name: Deploy to Linea Sepolia testnet | |
run: npx hardhat run scripts/deployETH.js --network lineaSepolia | |
working-directory: packages/evm/solidity | |
- name: Deploy to Taiko Hekla testnet | |
run: npx hardhat run scripts/deployETH.js --network taikoHekla | |
working-directory: packages/evm/solidity | |
- name: Deploy to Immutable Testnet | |
run: npx hardhat run scripts/deployETH.js --network immutableTestnet | |
working-directory: packages/evm/solidity |