Releasing CanJS
Release and hosting information for CanJS maintainers.
For maintainers of CanJS and its submodules this guide describes
- How to make a releases of CanJS subprojects and the main package
Releasing CanJS subprojects
All CanJS subprojects modules have the same structure which allows making releases through npm scripts.
To make a release:
Move to the
3.x-legacy
branchFetch all latest changes from the repository
Reinstall all Node modules in their latest version
git checkout 3.x-legacy git fetch --all && git rebase npm cache clean rm -rf node_modules npm install
Then run
npm run release:<versiontype>
. For example, to make aPATCH
release:npm run release:patch
This will run the tests, build, bump the version number accordingly and publish the module to npm.
Releasing the CanJS main project
The CanJS main package also has a 3.x-legacy branch set up to publish to the 3.x-legacy
tag in NPM using the same release script setup.