planningcenter / pco-release-action

Github Actions for streamlining the release process for apps that use Github releases
0 stars 0 forks source link

feat(deploy): allow for reading config for deployment from consumer repos #14

Closed kylemellander closed 3 weeks ago

kylemellander commented 3 weeks ago

The upgrade-commands setting for deploys was a bit awkward. It required each library to configure and know about the special upgrade needs of each library. In addition, adding new specific settings (like enabling changelog updates) would be difficult.

This new feature reads a .pco-release.config.yml file at the root of consumer repos when deploying. If there is a file, it will read it and use its configuration to override some settings.

Currently, this allows for specifying the upgrade_command, which it also uses string replacement to allow for specifying the version and package name.

For instance, tapestry-react will add the file like this:

upgrade_command: "yarn tr upgrade {{package_name}}@{{version}}"

In the future, I hope to also use the config for changelog update settings.