Skip to content

Commit

Permalink
On to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Dec 16, 2024
1 parent 4040a3b commit fdffd64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function getVersion() {
async function main() {
try {
// Make sure we're on main branch and it's clean
$`git diff-index --quiet HEAD --`;
$`git checkout main`;
$`git pull origin main`;
await $`git diff-index --quiet HEAD --`;
await $`git checkout main`;
await $`git pull origin main`;

// Update version
const newVersion = getVersion();
Expand All @@ -26,8 +26,8 @@ async function main() {
throw `Tag ${tag} already exists`;
}

$`git tag -a v${newVersion} -m "Release v${newVersion}"`;
$`git push origin --tags --all`;
await $`git tag -a v${newVersion} -m "Release v${newVersion}"`;
await $`git push origin --tags --all`;

console.log("\nReleasing version $newVersion!");
console.log("1. Wait for GitHub Actions to finish");
Expand Down

0 comments on commit fdffd64

Please sign in to comment.