Skip to content

Commit 192957b

Browse files
committed
fix: 🐛 Updated release workflow
1 parent fedda58 commit 192957b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
run: yarn lint
2424
- name: Test
2525
run: yarn test
26-
- name: Build
27-
run: yarn build
26+
- name: Build project
27+
run: yarn build:contracts & yarn build:src
2828
- name: Release
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,14 @@
9595
"@openzeppelin/contracts": "^4.8.3"
9696
},
9797
"scripts": {
98-
"clean": "rm -rf ./lib && hardhat clean",
99-
"build": "yarn clean && hardhat compile && tsc -p ./tsconfig.build.json",
98+
"build:contracts": "hardhat clean && hardhat compile && tsc -p ./tsconfig.build.json",
99+
"build:src": "rm -rf ./lib && tsc -p ./tsconfig.build.json",
100100
"test:contracts": "hardhat test",
101101
"test:src": "mocha -t 60000 --extension spec.ts test/src",
102102
"lint": "solhint . && eslint --ext .ts",
103103
"lint:fix": "eslint --ext .ts --fix && solhint --fix . && prettier --check !network --write .",
104104
"coverage": "npx hardhat coverage",
105105
"prepare": "husky install",
106-
"commit": "git-cz -S",
107-
"postinstall": "yarn build"
106+
"commit": "git-cz -S"
108107
}
109108
}

0 commit comments

Comments
 (0)