Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update release processes using Justfile, make reusable workflows have optional version param #972

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

kalvinnchau
Copy link
Collaborator

ci workflow overhaul

  • Justfile updates to help automate the release process, modeled after goose python justfile release
    • just release $VERSION - use this to set the next version we want to release, will create a new branch and set the commit ready to go
    • just tag-push once the above command has been run + pr merged, run this to set the newest tag and kick off the CI for release process
  • removes setting the version based on the pushed tag and instead uses the version already committed, and we can follow chore: bump patch version to 1.0.3 #967 for version bumping
  • extract the version from Cargo.toml for the canary step
  • makes version an optional parameter for the re-usable workflows, will primarily be used by the canary to generate canary versions (1.0.3-canary+SHA)
  • remove version parameters from ci and bundle workflows, they'll just use defaults
  • some autoformatting and trailing whitespace cleaning

example output

some examples of running the commands (truncated)

❯ just release 1.0.4
Switched to a new branch 'release/1.0.4'
v1.0.4
→ No staged files match any configured task.
[release/1.0.4 402e961d] chore(release): release version 1.0.4
 3 files changed, 4 insertions(+), 4 deletions(-)

❯ git show
commit 402e961d7f0afb784f4a6c34dc2d4f489c1fb328 (HEAD -> release/1.0.4)
...
    chore(release): release version 1.0.4

diff --git a/Cargo.toml b/Cargo.toml
...
 [workspace.package]
 edition = "2021"
-version = "1.0.3"
+version = "1.0.4"
diff --git a/ui/desktop/package-lock.json b/ui/desktop/package-lock.json
...
   "name": "goose-app",
-  "version": "1.0.3",
+  "version": "1.0.4",
...
       "name": "goose-app",
-      "version": "1.0.3",
+      "version": "1.0.4",
diff --git a/ui/desktop/package.json b/ui/desktop/package.json
index 84026c77..5b4d7c7f 100644
...
   "name": "goose-app",
   "productName": "Goose",
-  "version": "1.0.3",
+  "version": "1.0.4",
❯ just release 1.0.3
[error]: current_version '1.0.3' is the same as target version '1.0.3'
  expected: new version in semver format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant