Skip to content

Commit

Permalink
generate knope file
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Dec 18, 2024
1 parent 763dba9 commit 02a713e
Showing 1 changed file with 60 additions and 8 deletions.
68 changes: 60 additions & 8 deletions knope.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,88 @@ versioned_files = ["cli/Cargo.toml", "Cargo.lock"]
scopes = ["cli"]

[packages.bar]
versioned_files = ["bar/Cargo.toml", "Cargo.lock"]
versioned_files = ["bar/Cargo.toml", { path = "Cargo.toml", dependency = "bar" }, "Cargo.lock"]
scopes = ["bar"]

# Workflow to create a changeset
[[workflows]]
name = "release"
name = "document-change"

[[workflows.steps]]
type = "CreateChangeFile"
# end-workflow


[[workflows]]
name = "prepare-release"
[[workflows.steps]]
command = "git switch -c release/automated-ci"
type = "Command"

[[workflows.steps]]
type = "PrepareRelease"
# we have been following conventional commits, although inside the monorepo it's difficult to define scopes
ignore_conventional_commits = true

[[workflows.steps]]
type = "Command"
command = 'git commit -m "chore: prepare releases"'
# Workaround to update the lock files
# https://github.com/knope-dev/knope/issues/162
command = "cargo update -w"

[[workflows.steps]]
type = "Command"
command = "git push"
# WARNING: if you change this message, remember to update the `prepare_release.yml` too, because it uses this message
command = "git commit -am \"chore: prepare release\""

[[workflows.steps]]
# WARNING: if you change the name of the branch, update `prepare_release.yml` too
command = "git push --force-with-lease --set-upstream origin release/automated-ci"
type = "Command"

[[workflows.steps]]
base = "main"
type = "CreatePullRequest"

[workflows.steps.title]
template = "chore: prepare release"

[workflows.steps.body]
template = "This PR was automatically created via workflow. Merging it will create a new release of the Biome packages and crates."
# end-workflow


# The release workflow that will run in CI. It is triggered when the prepare-release PR is merged
[[workflows]]
name = "release"
name = "prepare-nightly"

[[workflows.steps]]
type = "Release"
type = "PrepareRelease"
ignore_conventional_commits = true
prerelease_label = "nightly"
allow_empty = true

[[workflows.steps]]
type = "Command"
# Workaround to update the lock files
# https://github.com/knope-dev/knope/issues/162
command = "cargo update -w"

[[workflows.steps]]
type = "Command"
command = "git commit -am 'nightly release'"


[[workflows.steps]]
type = "Command"
command = "git push"

# The release workflow that will run in CI. It is triggered when the prepare-release PR is merged
[[workflows]]
name = "document-change"
name = "release"

[[workflows.steps]]
type = "CreateChangeFile"
type = "Release"

[github]
owner = "ematipico"
Expand Down

0 comments on commit 02a713e

Please sign in to comment.