Skip to content

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Sakai committed Apr 11, 2018
1 parent e31538c commit ad4b358
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash -xe
#!/bin/bash -e

# Release the project with the following steps:
# 1. Update the release version in package.json.
# 2. Update "CHANGELOG.md" using "github_changelog_generator-1.15.0.pre.beta".
# 2. Update "CHANGELOG.md" using "github_changelog_generator-1.15.0.pre.rc".
# 3. Commit package.json and CHANGELOG.md.
# 4. Merge into master branch.
# 5. Export unitypackage.
Expand All @@ -26,11 +26,16 @@ sed -i -e "s/\"version\": \(.*\)/\"version\": \"${RELEASE_VERSION}\",/g" package
TAG=v$RELEASE_VERSION
git tag $TAG
git push --tags
github_changelog_generator
github_changelog_generator -t $GITHUB_TOKEN
git tag -d $TAG
git push --delete origin $TAG


git diff -- CHANGELOG.md
read -p "[? continue? (y/N):" yn
case "$yn" in [yY]*) ;; *) exit ;; esac


# commit files
git add CHANGELOG.md -f
git add package.json -f
Expand Down

0 comments on commit ad4b358

Please sign in to comment.