An example repos displaying a typical open source workflow for node projects distributed via NPM
The master branch has been forked to develop.
The develop branch has been set as the default.
Both master & develop have been protected.
Pull Request should be opened against develop, and master should represent the most current release.
With every push a travis build is fired.
The promote script is configured to exit if not in develop branch.
Travis will deploy the final package to npmjs.
The script only runs against the develop branch.
The script:
- merges the changes from develop into master
- updates the package version number
- pushes the changes to master for Travis to build
- merges the changes from master back into develop so develop is the most recent and primed fo future development
- pushes the changes to back to github