@@ -43,31 +43,31 @@ releaseInstructions() {
4343 echo " Release progress:"
4444 echo " $version (local) --> $pushed (pushed) --> $released (released)"
4545 echo
46- test -d dist && echo " Next release action:" || echo " When ready to release:"
47- checkin=$( test -d dist && echo " dist files" || echo " package.json" )
46+ test " $version " " >" " $released " && mode=" NOT released" || mode=" RELEASED"
47+ echo " Current version is: $mode "
48+ echo
4849 nextActionBump () {
50+ echo " When ready to do the next release:"
51+ echo
4952 echo " === Increment version ==="
5053 echo " Edit pacakge.json to bump $version to next version number"
5154 echo " $projectHome /package.json"
5255 }
53- nextActionCommit () {
56+ nextActionCommitTagPub () {
57+ echo " Verify all tests pass and then finalize the release:"
58+ echo
5459 echo " === Commit and push ==="
55- echo " Check in package.json for $version with the message:"
56- echo " Next release"
57- }
58- nextActionTag () {
59- echo " === Release checkin ==="
60- echo " Check in $checkin with the message:"
60+ echo " Check in all changed files with the message:"
6161 echo " Release $version "
62+ echo
6263 echo " === Tag and publish ==="
6364 echo " cd $projectHome "
6465 echo " git tag --annotate --message 'Release' $version "
6566 echo " git remote --verbose"
6667 echo " git push origin --tags"
6768 echo " npm publish"
6869 }
69- nextAction () { test " $version " " >" " $released " && nextActionTag || nextActionBump; }
70- test " $version " " >" " $pushed " && test -d dist && nextActionCommit || nextAction
70+ test " $version " " >" " $released " && nextActionCommitTagPub || nextActionBump
7171 echo
7272 }
7373
0 commit comments