This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from iris-i/Update-release-doc
Update release doc
- Loading branch information
Showing
3 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ bower_components | |
build | ||
*.sw* | ||
dist/ | ||
package-lock.json | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
# NPM Publication | ||
**NOTE** that this page relate to internal react-dash development workflows, not to implementations or library usage | ||
**NOTE** that this page relates to internal react-dash development workflows, not to implementations or library usage | ||
|
||
## Versioning Info | ||
We use semver http://semver.org/ : | ||
x.y.z x = major version (not currently implemented), y = minor version, z = patch version | ||
minor versions are NOT backward compatible before v1.0.0 (0.7.x is not guaranteed to be backwards compatible with 0.6.x) | ||
patch versions should maintain backwards compatibility (0.7.2 should be compatible with 0.7.3) | ||
|
||
##Workflow | ||
* Do development | ||
* Test / QA | ||
* update changelog | ||
* `git commit -am "Commit message - includes build"` | ||
* `git push origin my-dev-branch` | ||
* Submit PR - include description of work done, include acceptance criteria | ||
* Confirm that PR is merged, then... | ||
* `git pull` | ||
* `npm run build` | ||
* `git add --force dist/` | ||
* `git co -b release.x.y.z` | ||
* `git ci -a` | ||
* `git br -D release.x.y.z` | ||
* `npm version patch/minor` | ||
* `npm publish` | ||
* `git push --tags` | ||
* confirm that publication was successful (eg: `npm install [email protected]` then confirm that code updates are valid) | ||
## Dependencies | ||
|
||
1. Set up an account on npm | ||
1. Get added as maintainer on https://www.npmjs.com/package/react-dash and on the github repository | ||
1. Identify the next release based on semantic versioning, in the form of `x.y.z` | ||
1. Verify you have the appropriate git remotes, both an `origin` for your fork and an `upstream` for the React Dash repository | ||
1. A GPG key setup in github. How to generate a GPG key: https://help.github.com/articles/generating-a-new-gpg-key/ | ||
|
||
|
||
## Creating a new release | ||
|
||
** All dev branches should be pushed to and tested in the integration branch. Each dev branch should contain changelog.md notes of changes made/features added in the ticket. | ||
|
||
1. After all the dev branches slated for release have been merged into integration , confirm that the updates in the changelog from individual branches completely describes the new release. | ||
1. In ReactDashboard.js, update the version number in the console.log statement (line 2, for now) to reflect the react-dash version that you are about release. `console.log('React Dashboard -- 0.7.2');` | ||
1. Check the status of your local repository for any unwanted changes: `git status` (please note: you should not have any unexpected local changes that have not been code reviewed within a pull request) | ||
1. Commit the changelog and any final changes: `git commit -a -m "Changelog for the [x.y.z] release"` (please substitute x.y.z for the new release) | ||
1. Verify that you are in the integration branch: `git branch -v`. | ||
1. If you are not on the master branch, please merge your current branch (which should be your release candidate) into master: `git checkout master && git merge [branch from previous step]` (please substitute the [branch from previous step] with the output from the aforementioned branch verification step) | ||
1. Update the version of the package: `npm version [ patch | minor ]` (please substitute specifically with the word `patch` or `minor`). | ||
**NOTE:** This step cannot be successfully completed without an existing GPG key in github. | ||
1. Publish the package: `npm publish` | ||
1. Commit the package and tag: `git commit -a -m "Package info for the [x.y.z] release" && git push upstream master --tags` (please substitute x.y.z for the new release) | ||
1. Go to the github releases page, confirm that the `npm publish` step created a new release from the x.y.z tag. | ||
|
||
## Release verification | ||
|
||
Confirm that publication was successful (eg: `npm install [email protected]` then confirm that code updates are valid) | ||
|
||
maintain backwards compatibility (0.7.2 should be compatible with 0.7.3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters