* This script applies changesets based on changesets pre-release versioning. * * It reads all the new changesets and validates that: * - there are no major or minor changesets * * It then combines the new changesets to create a new changelog * section for the new version. * * The next step
()
| 32 | * prepared changelog section. |
| 33 | */ |
| 34 | async function versionAlpha() { |
| 35 | const changesets = await readAllNewChangsets(); |
| 36 | |
| 37 | validateChangesets(changesets); |
| 38 | |
| 39 | for (const packageName of [ |
| 40 | "@nomicfoundation/hardhat-ethers", |
| 41 | "@nomicfoundation/hardhat-toolbox-viem", |
| 42 | ]) { |
| 43 | if (shouldCreateChangeset(changesets, packageName)) { |
| 44 | await createChangeset(packageName); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | await executeChangesetVersion(); |
| 49 | |
| 50 | const hardhat = await readPackage("hardhat"); |
| 51 | |
| 52 | await updateHardhatChangelog(hardhat.version, changesets); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Validate that the changesets meet our rules for an Alpha release |
no test coverage detected