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
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,24 @@ To run the tests in watch mode (for <abbr title="test driven development&
34
34
yarn run test:watch
35
35
```
36
36
37
+
## Releasing alpha and production tagged packages to NPM
38
+
### Releasing alpha and test packages
39
+
- Use your Jira ticket to create your namespace. This will prevent collision as many people can be simultaneously working in the same repository.
40
+
- run: **`npm version prerelease --preid=wedev-1234`**
41
+
- this command will help auto-increment your alpha package tags inside your jira ticket namespace. refer to [npm versioning docs](https://docs.npmjs.com/cli/v11/commands/npm-version) & [guides for more info on command options](- this command will help auto-increment your alpha package tags inside your jira ticket namespace)
42
+
- run: **`npm publish --tag alpha`** our most used development tags are: alpha, canary
43
+
44
+
### Releasing production level package
45
+
We like to create a pull request specifically after the expected changes are merged into the main branch.
46
+
Steps:
47
+
- create PR with version number as branch name. Ex, if the next version is 3.2.1, your git command will be: `git checkout -b v3.2.1`
48
+
- in the new branch, run the following:
49
+
1.**`git pull --tags`** to fetch all git tags
50
+
2.**`npm version X.X.X`** to set the new tag WITH the commit git tagged
51
+
3.**`git push --tags`**
52
+
4.**`npm publish`**
53
+
- Note: version numbers must start at minimum, with 1 (1.x.x) in order for consumers to automatically receive patch updates (no tags starting with 0, like 0.x.x)
0 commit comments