We have a js monorepo and weve been using lerna to manage our versions. We tried to switch our CI/CD over to Github actions but running into an issue.
We have a work flow thats like:
name: deploy on: push: branches: [master] tags-ignore: - '*'
And one of the steps is to have lerna version and then put the build somewhere.
This works fine, however when lerna versions, it keeps track of the version in the package.json, so it will update the package.json with a newer value like “version”: “1.0.14”, then commit the package.json along with tags.
For some reason this is then causing the action to fire again, the tags-ignore is not working. I’ve tried all sorts of wildcards such as ‘**’ or ‘name*’ or ‘*.*’ all things that match the tags, and it still fires the action on the ‘update package.json/tag’ commit. I have a feeling its because this is a commit with a file change AND tagging, but I’m not sure.