semantic-release-stack-upload
Version:
A semantic-release plugin to upload Haskell packages to Hackage with stack
17 lines (13 loc) • 443 B
text/typescript
import { VerifyReleaseContext } from "semantic-release";
import { PluginConfig } from "./types/pluginConfig";
import { prepare } from "./prepare";
export const verifyRelease = (
config: PluginConfig,
context: VerifyReleaseContext,
): void => {
const { PREPARE_IN_VERIFY } = process.env;
if (PREPARE_IN_VERIFY === "1") {
context.logger.log("Running prepare now because PREPARE_IN_VERIFY=1");
prepare(config, context);
}
};