feat: publishing workflow

This commit is contained in:
2023-06-30 13:38:28 +02:00
parent 2d061b1638
commit 995cc89d17
8 changed files with 41 additions and 29 deletions

View File

@@ -27,15 +27,22 @@ Refer to the [contribution guide](./CONTRIBUTING.md)
After having added all changes using `pnpm changeset`
```shell
pnpm publish-packages
```
Internally, this will run
```shell
pnpm changeset version # bump versions
pnpm syncpack:fix
pnpm format:fix # changes to the package.json can cause issues
pnpm install # update lockfile and rebuild packages
pnpm build # make sure all packages are built
pnpm publish -r # publish all packages not yet in the registry
git add .
git commit -m "v[VERSION]"
git tag -a "v[VERSION]"
git commit -m "refactor: update changelog"
pnpm changeset tags
git push --follow-tags
# from here the pipeline will do the publishing
```
## Remote caching