adding a bit more to the setup script #6
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: Compile Contracts | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create .env file | |
run: echo "PRIVATE_KEY=${{ secrets.DEFAULT_PRIVATE_KEY }}" > .env | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # You can specify the Node.js version you need | |
- name: Install dependencies | |
run: npm install | |
- name: Compile contracts | |
run: npx hardhat compile |