Branch, Contributing, & Release Workflow - WebDevStudios/php-coding-standards GitHub Wiki
For php-coding-standards, js-coding-standards, and css-coding-standards we use this workflow to contribute and release packages:
- Branch off
master - Submit PR against
master(add notes inREADME.mdtoUnreleasedsection) - Merge into
master - Code will go out with that release later
Releases no longer go into release branches, instead master may be dirty and when ready for release:
For all NPM packages, run npm version --no-git-tag-version <tag> without a v in front of it please, and git tag <tag>; git push --tags, and run npm publish.
Note, you no longer have to update a Changelog, we will note those changes in the Github release.
- Bump version in
package*.jsonusingnpm version MAJOR|MINOR|PATCH(allowing thevX.X.Xtag) and push that up to Github -
npm publishto npmjs.org - Run
npx npm-pack-alland upload.tar.gzwith the release - Create a release in Github documenting the changes
- Add the
.tar.gzfrom above - Document how to install that version
- Add the
For PHP Coding Standards, which uses Composer simply tag a new release and login to WebDevStudio's packagist.org profile or npmjs.com and update related package settings.
master, for all packages, may have dirty development only code on them. Since these are public packages on npmjs.com and packagist.org, tags always denote stable code.