Skip to content

Using on.push.paths instead of on.push.branch? #850

Answered by Andarist
harshcut asked this question in Q&A
Discussion options

You must be logged in to vote

To my experience, the CHANGELOG.md file is generated only when a package is ready for release.

That should be mostly accurate.

What could be some undesired side effects of using on.push.paths instead of on.push.branch in github actions for publishing package to NPM? T

The versioning PR wouldn't get created. To make it work you would have to configure something like:

    paths:
      - '.changeset/**'
      - 'packages/**/CHANGELOG.md'

And with such patterns maybe even the first one would be enough - if only deleted files that match a pattern are also triggering workflows with on.push.paths.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by harshcut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants