update package publishing guide

This commit is contained in:
Felix Roos 2023-03-23 11:39:33 +01:00
parent 18d7222804
commit 251be60630
2 changed files with 11 additions and 3 deletions

View File

@ -123,7 +123,14 @@ To publish all packages that have been changed since the last release, run:
```sh ```sh
npm login npm login
npx lerna publish
# this will increment all the versions in package.json files of non private packages to selected versions
npx lerna version --no-private
# publish all packages inside /packages using pnpm! don't use lerna to publish!!
pnpm --filter "./packages/**" publish --dry-run
# the last command was only a dry-run, make sure everything looks ok, if yes, run the same command without flag
``` ```
To manually publish a single package, increase the version in the `package.json`, then run `pnpm publish`. To manually publish a single package, increase the version in the `package.json`, then run `pnpm publish`.

View File

@ -58,5 +58,6 @@ These packages provide bindings for different ways to output strudel patterns:
## Tools ## Tools
- [pnpm workspaces](https://pnpm.io/) - [pnpm](https://pnpm.io/) for package management, workspaces and publishing
- Publishing packages is done with [lerna](https://lerna.js.org/). - [lerna](https://lerna.js.org/) for bumping versions
- see CONTRIBUTING.md for more info