Add nightly frontend builds (#13061)

This commit is contained in:
Franck Nijhof
2022-07-01 23:30:40 +02:00
committed by GitHub
parent 1cc02415d3
commit f3c7583bf7
2 changed files with 73 additions and 1 deletions

View File

@@ -24,10 +24,15 @@ function auto(version) {
return patch(version);
}
function nightly() {
return `${today()}.dev`;
}
const methods = {
patch,
today,
auto,
nightly,
};
async function main(args) {
@@ -57,7 +62,11 @@ async function main(args) {
console.log("Current version:", version);
console.log("New version:", newVersion);
fs.writeFileSync("pyproject.toml", setup.replace(version, newVersion), "utf-8");
fs.writeFileSync(
"pyproject.toml",
setup.replace(version, newVersion),
"utf-8"
);
if (!commit) {
return;