Skip to content

creating sample setup script #3

creating sample setup script

creating sample setup script #3

Workflow file for this run

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