Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

Commit 2eb4bbc

Browse files
mojoaxelyotamberk
authored andcommitted
Release checklist (#3084)
* created a checklist for the release process * unchecked everything * added make github release * Fix typoes
1 parent a820ec4 commit 2eb4bbc

File tree

2 files changed

+83
-97
lines changed

2 files changed

+83
-97
lines changed

misc/RELEASE_CHECKLIST_TEMPLATE.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Release Checklist
2+
3+
## Communication
4+
- [ ] Create a new issue and copy&paste this checklist into it (Yeah! First Step done!)
5+
- [ ] Talk to the team: Who should make the release?
6+
- [ ] Announce a "Code-Freeze". No new Pull-Request until the release is done!
7+
- [ ] Checkout if we have MAJOR or MINOR changes. If not we do a PATCH release.
8+
- [ ] The new version will be: `vX.Y.Z`
9+
- [ ] Identify open BUGS and add them to the next PATCH milestone (optional).
10+
- [ ] Identify MINOR issues and add them to the next MINOR milestone (optional).
11+
12+
## Update to the newest version
13+
- [ ] Update to the current version: `git checkout develop && git pull`.
14+
- [ ] Create a new release branch. (`git checkout -b vX.Y.Z develop`)
15+
16+
## Build & Test
17+
- [ ] Update the version number of the library in `package.json` (remove the "SNAPSHOT").
18+
- [ ] Build the library: `npm prune && rm -rf node_modules && npm install && npm run build && npm run test`
19+
- [ ] Open some of the examples in your browser and visually check if it works as expected! (*We need automated tests for this!*)
20+
21+
## History
22+
(*THIS IS A LOT OF WORK! WE SHOULD TRY TO automate this in the future!!*)
23+
24+
- [ ] Get all commits since the last release: ```git log `git describe --tags --abbrev=0`..HEAD --oneline > .commits.tmp```
25+
- [ ] Open ".commity.tmp". and remove all commit before the last release.
26+
- [ ] Open every commit in GitHub and move every issue/pull-request to the current milestone.
27+
- [ ] Transfer all Commit-Messages/issues to "HISTORY.md" starting at the button.
28+
- Keep the order of the commits. Older commits are lower newers are higher.
29+
- Bug-Fixes start with `FIX #issue:`
30+
- New Features start with `FEAT #issue:`
31+
32+
## Commit
33+
- [ ] Commit the new version: `git commit -am "Release vX.Y.Z"`
34+
- [ ] Push the release branch: `git push`
35+
- [ ] Open a Pull-Request for the release-branch to the develop-branch.
36+
- [ ] Wait until somebody of the team looked over your changes and merges the Pull-Request.
37+
38+
### Update Master
39+
We don't merge the development branch to the master because the master branch is different to the develop-Branch. The master branch has a dist and test folder and does not generate Source-Maps.
40+
41+
If we would merge the development branch would overwrite this. To solve this we use rebase instead:
42+
43+
- [ ] Update: `git fetch && git checkout develop && git pull`
44+
- [ ] Rebase the `master` branch on the `develop` branch: `git checkout master && git rebase develop`
45+
- [ ] Generate new dist files: `npm prune && rm -rf node_modules && npm install && npm run build && npm run test && git commit -am "generated dist files for vX.Y.Z"
46+
- [ ] Create a version tag: `git tag "vX.Y.Z"`
47+
- [ ] [Remove the protection](https://github.com/almende/vis/settings/branches/master) from `master`.
48+
- [ ] FORCE-Push the branches to github: `git push --force && git push --tag`
49+
- [ ] [Re-Enable branch protection](https://github.com/almende/vis/settings/branches/master) (enable ALL checkboxes) for `master`.
50+
- [ ] Publish with npm: `npm publish` (check [npmjs.com](https://www.npmjs.com/package/vis))
51+
- [ ] Create a [new Release](https://github.com/almende/vis/releases/new) with the tang and the name "vX.Y.Z" and copy the data vom [HISTORY.md](../HISTORY.md) into the body.
52+
53+
54+
## Test
55+
- [ ] Go to a temp directory (e.g. "vis_vX.Y.Z"): `cd .. && mkdir vis_vX.Y.Z && cd vis_vX.Y.Z`
56+
- [ ] Install the library from npm: `npm init -f && npm install vis`
57+
- [ ] Verify if it installs the just released version, and verify if it works: `cd node_modules/vis/
58+
- [ ] Install the library via bower: `cd ../.. && bower install vis`
59+
- [ ] Verify if it installs the just released version, and verify if it works: `cd bower_components/vis/`
60+
- [ ] Clone the master from github: `cd ../.. && git clone [email protected]:almende/vis.git`.
61+
- [ ] Verify if it installs the just released version, and verify if it works. `cd vis`
62+
63+
## Update website
64+
- [ ] update the gh-pages branch: `git checkout gh-pages && git pull && git checkout -b "gh-pages_vX.Y.Z"`
65+
- [ ] Copy the `dist` folder from the `master` branch to the `github-pages` branch in another directory, overwriting existing files: `cp -rf ../vis_vX.Y.Z/vis/dist .`
66+
- [ ] Copy the `docs` folder from the `master` branch to the `github-pages` branch in another directory, overwriting existing files: `cp -rf ../vis_vX.Y.Z/vis/docs .`
67+
- [ ] Copy the `examples` folder from the `master` branch to the `github-pages` branch in another directory, overwriting existing files: `cp -rf ../vis_vX.Y.Z/vis/examples .`
68+
- [ ] Check if there are new or updated examples, and update the gallery screenshots accordingly.
69+
- [ ] Update the library version number in the `index.html` page.
70+
- [ ] Update the CDN links at the download section of index.html AND the CDN link at the top. (search-replace all!!)
71+
- [ ] Commit the changes: `git add -A && git commit -m "updates for vX.Y.Z"`
72+
- [ ] Push the changes `git push --set-upstream origin gh-pages_vX.Y.Z`
73+
74+
## Prepare next version
75+
- [ ] Switch to the "develop" branch: `git checkout develop`.
76+
- [ ] Change version numbers in "package.json" to a snapshot version `X.X.Z-SNAPSHOT`.
77+
- [ ] Commit and push: `git commit -am "changed version to vX.X.Z-SNAPSHOT"`
78+
- [ ] Create new tag: `git tag vX.X.Z-SNAPSHOT`.
79+
- [ ] [Remove the protection](https://github.com/almende/vis/settings/branches/develop) from `develop`.
80+
- [ ] FORCE-Push the branches to github: `git push --force && git push --tag`
81+
- [ ] [Re-Enable branch protection](https://github.com/almende/vis/settings/branches/develop) (enable ALL checkboxes) for `develop`.
82+
83+
DONE!

misc/how_to_publish.md

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)