Skip to content

Commit c982fb8

Browse files
authored
chore: update lerna config (#59)
* fix: remove publish script in package.json (yarn publish in already taken) * chore: update lerna config for lerna version * docs: update README publishing section
1 parent 0b24132 commit c982fb8

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ All you have to do is the versioning of the packages you want to publish.
3737

3838
> You need to be on the main branch and have the repo write access to publish a new version.
3939
40-
Run `yarn publish` to start the process. It will run the command `yarn lerna version --conventional-commits` which will prompt you to select the packages you want to publish and the version bump for each of them.
40+
Run `yarn lerna version` to start the process. It will run the command `yarn lerna version --conventional-commits --no-private`.
4141

4242
Lerna will prompt you to select the version bump for each package. It will also generate the changelog for each package based on the commit messages since the last version.
4343

@@ -53,6 +53,8 @@ Changes:
5353
- @bam.tech/eslint-plugin: 1.0.0 => 1.1.0
5454
```
5555

56+
It will then push a tagged commit `chore(release): Publish` which will then trigger the Github Workflow to publish the new version of each package to NPM.
57+
5658
## Running commands
5759

5860
- `yarn lerna run start`: run the 'start' script in all packages (currently only present in `example-app`),

lerna.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"packages": ["packages/*"],
66
"command": {
77
"version": {
8-
"noPrivate": true
8+
"private": false,
9+
"message": "chore(release): Publish",
10+
"conventionalCommits": true,
11+
"allowBranch": "main"
912
}
1013
}
1114
}

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"name": "root",
33
"private": true,
4-
"scripts": {
5-
"publish": "lerna version --conventional-commits --no-private"
6-
},
74
"workspaces": [
85
"packages/*",
96
"example-app"

0 commit comments

Comments
 (0)