From d780608696af9fc60a74557e5857ca82dfee75a5 Mon Sep 17 00:00:00 2001 From: SilviaAmAm Date: Mon, 7 Oct 2024 16:59:31 +0200 Subject: [PATCH] :memo: - chore: Document release process --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index b11c21ce..dd6d24f7 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,33 @@ A reusable component library developed by [Maykin Media](https://www.maykinmedia ## DEVELOPMENT NOTICE This libray is in active development. + +## Release procedure + +When releasing a new version of the package, follow these steps: + +```bash +git pull +npm run build +npm run makemessages # Check that nothing changed, otherwise stop +npm run compilemessages # Check that nothing changed, otherwise stop +``` +Update the version in the `package.json` file. Then: + +```bash +npm install +git add package.json package-lock.json +git commit -m ":bookmark: - chore: " +git push +``` + +If you do not have the rights to push directly to `main`, make a release branch with the +release commit and merge it. Then, `git pull` the changes on `main` and: + +```bash +git tag 0.0.XX-alpha +git push --tags +npm publish --tag alpha --access=public +``` + +If you do not have credentials to publish to npm, ask someone else to do it. \ No newline at end of file