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

Create a staging PR and production PR #2370

Open
Spoutnik97 opened this issue Sep 6, 2024 · 0 comments
Open

Create a staging PR and production PR #2370

Spoutnik97 opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@Spoutnik97
Copy link

Hi,
I would like to setup a workflow to deploy my applications (monorepo) in staging and production with release-please.

What are the best practices?
I thought about :

  1. create a release-please-config.staging with:
{
  "prerelease-type": "beta",
  "release-type": "node",
  "versioning-strategy": "prerelease",
  "versioning-type": "prerelease",
  "versioning": "prerelease",
  "prerelease": true,
  "include-v-in-tag": true,
  "last-release-sha": "767ce15708e433867bdff190abf422d9d7defbeb",
  "initial-version": "0.61.0",
  "include-component-in-tag": true,
}
  1. create a staging workflow on each PR merged on main. -> Release please create a PR with new features and fixes
  2. If I merge this PR, it: a) create a staging tag like v1.1.0-beta b) run the release-please-config.production workflow with the
    following config:
{
  "release-type": "node",
  "include-v-in-tag": true,
  "last-release-sha": "767ce15708e433867bdff190abf422d9d7defbeb",
  "initial-version": "0.61.0",
  "include-component-in-tag": true,
  "pull-request-title-pattern": "chore: release Production ${version}",
}

Release-please create a new PR for me, with a new version v1.1.0. If I merge this PR, it creates a tag

But if I don"t merge the production PR, and I add some new bug fixes, a new staging PR is created v1.1.0-beta.1

Is it possible to create such a workflow?

I tried with 2 release-please-manifests, but I am not convinced of the way to do it

@Spoutnik97 Spoutnik97 added priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue. labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants