Auri
Organize package changes and releases.
npm i -D auri
yarn add -D auri
pnpm add -D auri
Run commands:
npx auri
pnpm exec auri
yarn auri
Set up
- Create
.auridirectory - Create
config.jsoninside.auri - Generate a Github personal access token with the following scopes:
repo,user:email - Store the token as
AURI_GITHUB_TOKENin Github actions secrets - Add
auri.publishscript to each package's package.json - this will be the command Auri will use to publish - Make sure "Read and write permission" is enabled in repository settings > Actions > General > Workflow permissions
- Add
auri.deployscript to your documentation sites
Config
ignore
string[]. Paths to ignore when searching for packages. node_modules and .git already included.
{
"ignore": ["node_modules"]
}repository
Required string. Full Github repository url.
{
"repository": "https://github.com/pilcrowOnPaper/auri"
}Project package.json
auri.format
{
"scripts": {
"auri.format": "pnpm prettier -w ."
}
}auri.publish_setup
This will be called before publishing packages.
{
"scripts": {
"auri.publish_setup": "pnpm install-some-dependencies"
}
}Package package.json
auri.publish
{
"scripts": {
"auri.publish": "pnpm i && pnpm build && pnpm publish"
}
}Documentation package.json
auri.deploy
{
"scripts": {
"auri.deploy": "pnpm deploy"
}
}Commands
auri add
Creates a new changeset in .auri directory. A changeset is a markdown file:
---
package: "" # package name (package.json)
type: "" # "major", "minor", "patch" (semver)
---auri prepare
- Generate changelogs based on changesets
- Update package.json
- Delete all changesets
- Commits all code to
auribranch - Creates new PR
auri=>main
auri publish
Compares version of package.json and one in the NPM registry, and runs auri.publish if it differs.
auri list
Lists all packages handled by Auri.