Skip to content

Commit

Permalink
create a script to release and tag for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
jalafel committed Dec 1, 2023
1 parent 185a5d2 commit 69a5201
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions script/rerelease
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Checkout the release branch
git checkout releases/v1
# Get this branch even with master so the latest changes are included
git reset --hard master
# Rerun the checks and rebuild the TypeScript and ncc distribution
npm run build
# Add the dist
git add .
# Commit
git commit -m "v1"
# Force push to overwrite any previous commits for this branch
git push -f origin releases/v1
# Remove previously pushed tags (v1 will be unusable momentarily until you re-push)
git push origin :refs/tags/v1
# Re-apply the tag
git tag -fa v1 -m "v1"
# Push everything
git push origin v1
# Checkout master again
git checkout master

0 comments on commit 69a5201

Please sign in to comment.