You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow these steps when releasing the Nightwatch Browserstack plugin:
4
+
5
+
1.**Merge the corresponding pull request (PR)** using squash and merge.
6
+
2.**Clone a fresh copy of the repository locally** to avoid publishing uncommitted files.
7
+
3. Run `npm install` (or `npm i`) to install dependencies.
8
+
4. Run `npm audit fix` to automatically resolve fixable vulnerabilities.
9
+
_Note: This only changes `package-lock.json`. It is safer than using `--force`, which may change package versions unexpectedly._
10
+
5.**Commit and push** any changes resulting from `npm audit fix`.
11
+
6.**Bump the version** in `package.json` (e.g., `3.6.2` → `3.7.0` for a minor bump).
12
+
7. Run `npm install` again to update `package-lock.json` after the version bump.
13
+
8.**Stage and commit** the version bump changes.
14
+
_Release commit names should match the version number, e.g., `3.7.0`._
15
+
9. Add a tag:
16
+
```sh
17
+
git tag v3.7.0
18
+
```
19
+
10. Push commits **and tags**:
20
+
```sh
21
+
git push origin main --tags
22
+
```
23
+
11. **Login to npm (if not already authenticated):**
24
+
```sh
25
+
npm login
26
+
```
27
+
_Requires an npm account._
28
+
12. **Publish the package to npm:**
29
+
```sh
30
+
npm publish
31
+
```
32
+
_Requires an npm account with permission for this package (typically by joining the Nightwatch organization on npm). For accounts with 2FA, a mobile verification code will be requested._
0 commit comments