diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b65dccb..b3843b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,8 @@ jobs: run: yarn lint - name: Test run: yarn test - - name: Build - run: yarn build + - name: Build project + run: yarn build:contracts & yarn build:src - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index a4aace7..11b4dcd 100644 --- a/package.json +++ b/package.json @@ -95,15 +95,14 @@ "@openzeppelin/contracts": "^4.8.3" }, "scripts": { - "clean": "rm -rf ./lib && hardhat clean", - "build": "yarn clean && hardhat compile && tsc -p ./tsconfig.build.json", + "build:contracts": "hardhat clean && hardhat compile && tsc -p ./tsconfig.build.json", + "build:src": "rm -rf ./lib && tsc -p ./tsconfig.build.json", "test:contracts": "hardhat test", "test:src": "mocha -t 60000 --extension spec.ts test/src", "lint": "solhint . && eslint --ext .ts", "lint:fix": "eslint --ext .ts --fix && solhint --fix . && prettier --check !network --write .", "coverage": "npx hardhat coverage", "prepare": "husky install", - "commit": "git-cz -S", - "postinstall": "yarn build" + "commit": "git-cz -S" } }