Shared typescript utility methods and types for AtB products.
yarn add @atb-as/utils
In order to test local changes to the package locally, you can use yalc. This is an alternative to yarn link, that works better with React Native / metro.
- Run
npm i yalc -gto install yalc on your machine. - Run
yarn build && yalc pushto set up a local link to this package. - Run
yalc add @atb-as/utilsin the project that depends on it.
Your local changes to @atb-as/utils should now be available to use. When you make more changes locally, you can run yarn build && yalc push again to update the linked package.
When you're done, run yalc remove --all to reset the project's package.json.
- Merge a PR to main, where the commit message follows the conventional commits specification.
- The Github action
release-please-actionwill create a PR to update the package version and changelog.
featwill be a minor release.fixwill be a patch release.- Adding
!after the prefix (e.g.feat!) means it is a breaking change, and will be a major release. This includes any changes to the public API that requires users of the package to update any code. - Other prefixes such as
choreorrefactorwill not trigger a release.
- Merge the release PR to main to trigger a NPM release.
Note
In case you want to create a release with a different version number than the one suggested by release-please, you can make an empty commit on master with commit message on this format:
chore: release v1.2.3
release-as: 1.2.3
For more details, see release-please-action.
EUPL-1.2