To deploy a new version of the package:
-
Create a release branch
git checkout -b release/{scg | loans}/M.m.p
-
Make changes Update the package code as needed for the release.
-
Make the chore(prod) commit with the correct version Update the version in
pubspec.yaml
and commit:git add pubspec.yaml git commit -m "chore(prod): scg:M.m.p" # OR git commit -m "chore(prod): loans:M.m.p"
-
Create a tag and push Create a tag matching the pubspec version with the appropriate prefix:
git tag scg-M.m.p # OR git tag scloans-M.m.p git push origin <tag-name>
-
Run the publish workflow Go to GitHub Actions and manually trigger the "🚀 Publish" workflow on the created tag. The workflow will not work on branches - it must be run on a tag.