Add semver check (#156)
* Add semver check Fix format Speeling Speeling * Further contributing note * Speeling * Fix hostPlatform -> stdenv issue * Bump dependencies --------- Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
This commit is contained in:
parent
ce4cf08b7b
commit
f95ed913f6
|
@ -359,6 +359,9 @@ You can also remove your `$HOME/nix-installer-wsl-tests-temp` folder whenever yo
|
|||
|
||||
# Releases
|
||||
|
||||
|
||||
This package uses [Semantic Versioning](https://semver.org/). When determining the version number for a new release refer to Semantic Versioning for guidance. You can use the `check-semver` command alias from within the development environment to validate your changes don't break semver.
|
||||
|
||||
To cut a release:
|
||||
|
||||
* Ensure the `flake.lock`, `Cargo.lock`, and Rust dependencies are up-to-date with the following:
|
||||
|
|
|
@ -139,6 +139,7 @@
|
|||
check.check-spelling
|
||||
check.check-nixpkgs-fmt
|
||||
check.check-editorconfig
|
||||
check.check-semver
|
||||
]
|
||||
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [ libiconv ]);
|
||||
};
|
||||
|
|
|
@ -41,4 +41,13 @@ in
|
|||
eclint .
|
||||
'';
|
||||
});
|
||||
|
||||
# Semver
|
||||
check-semver = (writeShellApplication {
|
||||
name = "check-semver";
|
||||
runtimeInputs = with pkgs; [ cargo-semver-checks ];
|
||||
text = ''
|
||||
cargo-semver-checks semver-checks check-release
|
||||
'';
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue