browsertests
Testing framework for testing Drupal sites using Selenium
Updating the NPM package
-
Complete all development work in typical way
-
Merge PRs into main branch before continuing
-
Decide if update is a major, minor, or patch release — see Semantic Versioning for guidance
-
major update — 1.0.0 → 2.0.0
-
minor update — 1.0.0 → 1.1.0
-
patch update — 1.0.0 → 1.0.1
-
git checkout main
-
git pull
-
Bump version with update type (major, minor, patch) by running one of the following:
npm version major
npm version minor
npm version patch
— this will increment package.json
, package-lock.json
, and create a new tag with version number in git
-
Edit
CHANGELOG.md
, documenting new tag -
git add CHANGELOG.md
-
git commit -m "Update CHANGELOG.md"
-
git push
-
npm publish --access public
⚠️ If you see a 404 from NPM, run npm login
- done