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

fix(release-automation): Release Please Using Manifests #1149

Merged
merged 10 commits into from
Feb 15, 2023

Conversation

whizzzkid
Copy link
Contributor

@whizzzkid whizzzkid commented Feb 8, 2023

In this PR:

Addressing @SgtPooki's questions:

  • How does manifest-pr fixes things.
    because release-please cannot decide how they want to deal with things, manifest[-pr] tells release-please to look for two files in the root of the base branch. .release-please-manifest.json and release-please-config.js we can pass config as yaml args, but that does not control everything like jsonUpdater that we need to update arbitrary json e.g. manifest.common.json. Since the feature parity is lacking, it's assumed (even by them) that manifest is the better way of doing this.

  • Regarded hard-coded sha, will those be updated automatically?
    No, but since is the first time a PR is being generated by release please, it needs to be manually boot-strapped. I'll be creating a follow-up PR after the first one is merged. That will ensure we have all the required files it needs in the base branch main. The demo PR contains all the files that will be updated automatically.

@whizzzkid whizzzkid changed the title Fix/release please fix(release-automation): Release Please Using Manifests Feb 8, 2023
@@ -100,12 +100,8 @@ jobs:
steps:
- uses: google-github-actions/[email protected]
with:
release-type: node
package-name: ipfs-companion
command: manifest-pr
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it would look for config and manifest files.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you expand on how this fixes things?

Comment on lines +2 to +3
"bootstrap-sha": "65fe66cc283f1ac8c89638034e7db006e1f53791",
"last-release-sha": "7td2b9838885b3adf52e78ddd23ac01cb819e631",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the sha of the last release and sha of the release we want to start counting changes from.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will these be updated automatically?

Comment on lines +12 to +19
"packages": {
".": {
"release-type": "node",
"plugins": ["node-workspace"],
"package-name": "ipfs-companion",
"release-as": "2.22.0"
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since manifests are designed to be setup for monorepo, the one package config looks like this.

Comment on lines +5 to +11
"extra-files": [
{
"type": "json",
"path": "add-on/manifest.common.json",
"jsonpath": "$.version"
}
],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and these cannot be associated with the package, because 🤷🏽

@whizzzkid whizzzkid marked this pull request as ready for review February 8, 2023 09:43
@whizzzkid whizzzkid requested review from lidel and a team as code owners February 8, 2023 09:43
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some questions

@@ -100,12 +100,8 @@ jobs:
steps:
- uses: google-github-actions/[email protected]
with:
release-type: node
package-name: ipfs-companion
command: manifest-pr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you expand on how this fixes things?

@@ -0,0 +1,3 @@
{
".": "2.21.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this updated automatically?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

answered your questions in the PR description 🔝

Comment on lines +2 to +3
"bootstrap-sha": "65fe66cc283f1ac8c89638034e7db006e1f53791",
"last-release-sha": "7td2b9838885b3adf52e78ddd23ac01cb819e631",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will these be updated automatically?

"release-type": "node",
"plugins": ["node-workspace"],
"package-name": "ipfs-companion",
"release-as": "2.22.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this updated automatically?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

answered your questions in the PR description 🔝

@SgtPooki SgtPooki self-requested a review February 15, 2023 19:25
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

2 participants