Compare commits

..

No commits in common. "main" and "v1" have entirely different histories.
main ... v1

2 changed files with 3 additions and 11 deletions

View File

@ -1,6 +1,5 @@
#!/bin/bash
set -euo pipefail
set +H
ENTRYPOINT="$1"
FLAGS_STRING="${2:-}"
@ -58,7 +57,7 @@ append_section() {
}
append_section "feat" "Features" "✨"
append_section "fix" "Fixes" "🐛"
# append_section "chore" "Chores" "🧹"
append_section "chore" "Chores" "🧹"
# Fallback if no commits found
[[ -z "$CHANGELOG" ]] && CHANGELOG="No commit history found."

View File

@ -29,20 +29,14 @@ if (branch.startsWith("prerelease-")) {
}
const tag = `v${version}`;
console.log(`Tag: ${tag}`);
let created = true;
try {
await run("git", ["rev-parse", tag]);
console.log(`Tag ${tag} already exists.`);
created = false;
} catch {
try {
await run("git", ["tag", tag]);
await run("git", ["push", "origin", tag]);
} catch (e) {
console.error(e);
created = false;
}
}
if (created) {
const out = Deno.env.get("GITHUB_OUTPUT");
@ -60,7 +54,6 @@ if (created) {
} else {
console.error("GITHUB_OUTPUT not set.");
}
Deno.exit(0);
}
async function run(cmd: string, args: string[]) {