Run your 1-hour test suite in 2 minutes with optimal parallelisation on your existing CI infrastructure
-
cd packages/jest
-
Sign in to the npm registry with:
npm adduser
-
Ensure you have the latest version of @knapsack-pro/core
in package.json
(do the change in a separate PR to have it appear in the CHANGELOG):
{
"dependencies": {
"@knapsack-pro/core": "^x.x.x"
}
}
and run npm install
.
Commit the updated package.json
and package-lock.json
:
git commit -am "deps(jest): update @knapsack-pro/core"
-
Before releasing a new version of the package, please update CHANGELOG.md
with github_changelog_generator
:
gem install github_changelog_generator
github_changelog_generator --user KnapsackPro --project knapsack-pro-js --pr-wo-labels --issues-wo-labels --include-labels @knapsack-pro/jest --since-tag @knapsack-pro/jest@6.2.0 --exclude-tags-regex "@knapsack-pro\/(core|cypress)@.*"
git commit -am "docs(jest): update CHANGELOG.md"
git push origin main
-
If you have added new files to the repository, and they should be part of the released npm package, please ensure they are included in the files
array in package.json
.
-
Compile the project:
npm run build
-
In order to bump the version of the package run the command below. It will also create a version commit and tag for the release:
npm version patch --no-commit-hooks --tag-version-prefix=@knapsack-pro/jest@
npm version minor --no-commit-hooks --tag-version-prefix=@knapsack-pro/jest@
git commit -am @knapsack-pro/jest@x.x.x
git tag @knapsack-pro/jest@x.x.x
-
Push the commit and tag:
git push origin main --tags
-
When the git tag is on Github, you can update CHANGELOG.md
:
github_changelog_generator --user KnapsackPro --project knapsack-pro-js --pr-wo-labels --issues-wo-labels --include-labels @knapsack-pro/jest --since-tag @knapsack-pro/jest@6.2.0 --exclude-tags-regex "@knapsack-pro\/(core|cypress)@.*"
git commit -am "docs(jest): update CHANGELOG.md"
git push origin main
-
Publish the package to the npm registry:
npm publish
-
Update the latest available library version in: