layout | title | permalink |
---|---|---|
untitled |
Releasing |
/releasing/ |
- Go to
development
branch. - Open
CHANGELOG.md
file. - Make sure all changes are properly listed in changelog adding DEV NOTES where applicable.
Run either npm run release:patch
, npm run release:minor
and npm run release:major
based on the version you want.
Note: Do not interact with any of the project's version numbers in a direct way. The following commands handle all aspects of releasing the next version. Once ran, they will auto update package.json
and _config.yml
with all the asset query strings with the next corresponding semver version. They will then build the new files, create a commit and push them to the repo.
Requirements:
- Must be a developer member of the WPMU DEV Organization on npm.
- Must be on
master
branch with a clean working directory.
- Go to
master
branch (do not push commits directly to this branch and make sure there are no residual folders nor files formdevelopment
branch). - Run
git tag v{version-number}
replacing{version-number}
with the new version, for example2.6.0
. - Push the new tag running
git push --tags
. - Run
npm publish
to release new package.