garronej / ts-ci

🚀 A project starter for module publisher
MIT License
351 stars 19 forks source link

is_package_json_version_upgraded in monorepo #12

Open acurrieclark opened 1 year ago

acurrieclark commented 1 year ago

I am adding Denoify to a package in a monorepo, and came across your excellent github action for managing publishing to deno.land.

Is there a way to configure the is_package_json_version_upgraded action so that it can point to the package.json file in a subdirectory of the repo?

Similarly, is there a way to configure a tag prefix which is checked for the latest semver?

Many thanks.

garronej commented 1 year ago

Oh @acurrieclark,
I'm so sorry I missed your the notification.
If you still have this question I can answer it!

acurrieclark commented 1 year ago

Hello! I worked round this using a different action in the end, but I am sure that it will be useful in the future. Is it documented anywhere?

garronej commented 1 year ago

Ok cool!
What was the action you used? Just curious.
The actions are on the actions branch of this repo.
The code for this specific action is here: https://github.com/garronej/ts-ci/blob/actions/src/is_package_json_version_upgraded.ts

It would be cool to have the possiblity to specify a path for the package.json.

Could you give me the link of your repo so that I can have a look at how it is structured?

Thanks

acurrieclark commented 1 year ago

Went with this action in the end.

I was putting together a release action for Automerge at the time. Used your Denoify package there, which is why I tried using this first.