Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Refactor release-please config for versioning/release process …
…changes (#1246) Updated release-please config to make use of latest features and improve our versioning/release process. Requirements: - Calendar versioned packages: - Must follow Looker’s major and minor calendar versioning of the API spec they’ve pulled in, even if the package’s changes are only dependencies with version bumps. E.g. if Looker API spec version is at 23.12.x, then sdk is at 23.12.x, AND extension-sdk must be at 23.12.x even if it has no changes outside of its sdk dependency version bump. - We make use of release-please manifest plugin “linked-versions” to sync all calendar versioned packages versions. Now instead of editing the config file, the sdk gen commit should have “Release-As:X.X.X” in the commit body to force calendar versioning. As long as the commit touches at least one file in at least one calendar versioned package it will force all calendar version packages to that version. There is a caveat to using linked-version. If we patch bump any of the linked packages, they will all match the highest version, however this is not too big od a deal, as it is the major/minor that matters, and the linked-version plugin saves us complexity in our release process and config file. - Update patch number for any changes not associated with a Looker release. - We use package scoped "versioning": "always-bump-patch" to keep any changes from turning into minor or major bumps. Now for any sdk changes in between Looker releases, you only need to make/merge the changes with a conventional commit title, and merge the resulting release PR. - Semantically versioned packages: - Release-please naturally does semver on packages by default. - Should bump patch number if its dependency has a version bump. - Node workspace plugin automatically patch bumps any package if its dependencies are updated. Outside of all that, also cleaned up the extra "release-as"'s since we dont need them anymore and updated sdk_gen to set "release-as" git commit body footer to calendar version.
- Loading branch information