-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create a script to release and tag for v1
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |