MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / versionAlpha

Function versionAlpha

scripts/version-alpha.ts:34–53  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

32 * prepared changelog section.
33 */
34async 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

Callers 1

version-alpha.tsFile · 0.85

Calls 7

readAllNewChangsetsFunction · 0.90
readPackageFunction · 0.90
validateChangesetsFunction · 0.85
shouldCreateChangesetFunction · 0.85
createChangesetFunction · 0.85
executeChangesetVersionFunction · 0.85
updateHardhatChangelogFunction · 0.85

Tested by

no test coverage detected