feat: add release command to cut releases

This introduces a new `pnpm release` command in our template which makes
use of `commit-and-tag-version`, that will generate changelogs based on
our project's commit histories.
This commit is contained in:
r4bbit 2024-02-27 12:21:53 +01:00
parent b7114854cb
commit 2eec9a8183
3 changed files with 1446 additions and 2 deletions

0
CHANGELOG.md Normal file
View File

View File

@ -8,7 +8,8 @@
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.0.0", "prettier": "^3.0.0",
"solhint-community": "^3.6.0" "solhint-community": "^3.6.0",
"commit-and-tag-version": "^12.2.0"
}, },
"keywords": [ "keywords": [
"blockchain", "blockchain",
@ -27,6 +28,7 @@
"lint:sol": "forge fmt --check && pnpm solhint {script,src,test,certora}/**/*.sol", "lint:sol": "forge fmt --check && pnpm solhint {script,src,test,certora}/**/*.sol",
"prettier:check": "prettier --check **/*.{json,md,yml} --ignore-path=.prettierignore", "prettier:check": "prettier --check **/*.{json,md,yml} --ignore-path=.prettierignore",
"prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore", "prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore",
"gas-report": "forge test --gas-report 2>&1 | (tee /dev/tty | awk '/Test result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)" "gas-report": "forge test --gas-report 2>&1 | (tee /dev/tty | awk '/Test result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)",
"release": "commit-and-tag-version"
} }
} }

1442
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff