chore: add release command

This adds the `pnpm release` command to cut releases and generate
changelogs automatically from commit histories.

It also sets the `package.json` version to `0.1.0` as we haven't
actually put out a `1.0.0` release yet.
This commit is contained in:
r4bbit 2024-02-28 12:52:36 +01:00
parent d397466f75
commit a76603e408
2 changed files with 1447 additions and 3 deletions

View File

@ -1,11 +1,12 @@
{ {
"name": "@logos-co/staking", "name": "@logos-co/staking",
"description": "SNT staking contracts", "description": "SNT staking contracts",
"version": "1.0.0", "version": "0.1.0",
"author": {}, "author": {},
"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 @@
"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)",
"verify:stake_vault": "certoraRun certora/confs/StakeVault.conf", "verify:stake_vault": "certoraRun certora/confs/StakeVault.conf",
"verify:stake_manager": "certoraRun certora/confs/StakeManager.conf", "verify:stake_manager": "certoraRun certora/confs/StakeManager.conf",
"verify:stake_manager_start_migration": "certoraRun certora/confs/StakeManagerStartMigration.conf" "verify:stake_manager_start_migration": "certoraRun certora/confs/StakeManagerStartMigration.conf",
"release": "commit-and-tag-version"
} }
} }

File diff suppressed because it is too large Load Diff