Version Iloom
Update the iloom version and license change date for a release.
Arguments
Version bump type: $ARGUMENTS (defaults to patch if empty)
License Date
The new license change date (4 years from today): !date -v+4y "+%Y-%m-%d"
Task
- •Update LICENSE file (line 23): Change the
Change Date:value to the license date shown above - •Update README.md (line 527): Change the date in "Converts to Apache 2.0 on YYYY-MM-DD" to the license date shown above
- •Commit date changes: Stage and commit LICENSE and README.md with message "Update license change date to YYYY-MM-DD"
- •Run version bump: Execute
npm version $ARGUMENTS --no-git-tag-version(usepatchif no argument was provided), then commit the package.json change with the version number as the message - •Squash commits: Run
git reset --soft HEAD~2 && git commit --no-verify -m "X.Y.Z"to squash into one commit (use the new version number as the message) - •Create version tag: Run
git tag vX.Y.Zto create the tag on the squashed commit - •Report: Show the old and new version numbers
Important
- •Use
npm versionwith--no-git-tag-versionto avoid creating the tag before squashing - •The date format must be
YYYY-MM-DD