2.3 KiB
2.3 KiB
Mithril Release Processes
Releasing a new Mithril version
Prepare the release
- Ensure your local branch is up to date
$ git co next
$ git pull --rebase lhorie next
- Determine patch level of the change
- Update information in
docs/change-log.mdto match reality of the new version being prepared for release - Commit changes to
next
$ git add .
$ git commit -m "Preparing for release"
# Push to your branch
$ git push
# Push to lhorie/mithril.js
$ git push lhorie next
Merge from next to master
- Switch to
masterand make sure it's up to date
$ git co master
$ git pull --rebase lhorie master
- merge
nexton top of it
$ git merge next
- Clean & update npm dependencies and ensure the tests are passing.
$ npm prune
$ npm i
$ npm test
Publish the release
npm run release <major|minor|patch|semver>, see the docs fornpm version- The changes will be automatically pushed to your fork
- Push the changes to
lhorie/mithril.js
$ git push lhorie master
- Travis will push the new release to npm & create a GitHub release
Merge master back into next
This helps to ensure that the version field of package.json doesn't get out of date.
- Switch to
nextand make sure it's up to date
$ git co next
$ git pull --rebase lhorie next
- Merge
masterback ontonext
$ git merge master
- Push the changes to your fork &
lhorie/mithril.js
$ git push
$ git push lhorie next
Update the GitHub release
- The GitHub Release will require a manual description & title to be added. I suggest coming up with a fun title & then copying the
docs/change-log.mdentry for the build.
Updating mithril.js.org
Fixes to documentation can land whenever, updates to the site are published via Travis.
# These steps assume that lhorie/mithril.js is a git remote named "lhorie"
# Ensure your next branch is up to date
$ git co next
$ git pull lhorie next
# Splat the docs folder from next onto master
$ git co master
$ git co next -- ./docs
# Manually ensure that no new feature docs were added
$ git push lhorie
After the Travis build completes the updated docs should appear on https://mithril.js.org in a few minutes.