From 37c43725c9de6e231f058bb620eb7e244bf503f8 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 26 Dec 2023 17:02:34 +0100 Subject: [PATCH] docs: Add packages publishing workflow Signed-off-by: jld3103 --- docs/workflows.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/workflows.md b/docs/workflows.md index 4e2d57d3c90..57e208fec08 100644 --- a/docs/workflows.md +++ b/docs/workflows.md @@ -9,3 +9,22 @@ If you need to add a new package to the Neon project please make sure to execute 4. Add a Symlink to our main [license](../assets/AGPL-3.0.txt). 5. Update [commitlint.yaml](../commitlint.yaml) by adding the new package name. 6. Remove the package `.gitignore` (a global `.gitignore` for all packages is used instead). + +## Publishing new versions of the packages + +Because [melos does not support signing-off](https://github.com/invertase/melos/issues/591) yet the process is a little more complicate: + +```bash +melos version --no-git-tag-version +melos bootstrap + +git add . +git commit --message "chore(release): publish packages" --signoff --no-edit + +# Create PR and get it merged + +melos publish --git-tag-version +git push --follow-tags +``` + +Due to [melos not creating a commit when git-tagging is turned off](https://github.com/invertase/melos/issues/622) we have to create the commit manually, and it does not contain the list of updated packages.