# Publish package manually as a beta

This can be an alternative to yalc workflow for local development, but better suited for WIP POC work.

- add `-beta.x` where x in a number to the package version
- `npm run build`
- `npm publish --tag beta`

In the host app:

- Always install beta with `npm install @loophq/sonik@beta`
- Install specific version with npm install `@loophq/sonik@3.1.1-beta.1`

## If beta is pushed as latest by accident

- tag the previous version as latest `npm dist-tag add @loophq/sonik@3.1.7 latest`
- tag the beta as a beta `npm dist-tag add @loophq/sonik@5.1.8-beta.1 beta`
