phips28 / gh-action-bump-version

GitHub Action for automated npm version bump.
MIT License
336 stars 250 forks source link

The action regenerates the yarn.lock file and commit it to VCS #252

Open virtyaluk opened 1 month ago

virtyaluk commented 1 month ago

Hello there! Long story short. I use Yarn 4, monorepo, and Yarn Workspaces to manage a handful of web projects in a single code base. Every time this action runs, it updates the package.json file and regenerates the yarn.lock file using Yarn 1 specification (instead of my project's Yarn 4) and commit the changes back to the version control. This is an unwanted side-effect that breaks parts of my code. I'd like to see this action commit only necessary files and avoid touching anything else. Is that possible? Thanks.

image
phips28 commented 1 month ago

I would appreciate if you could do a PR for that 🙂

phips28 commented 1 month ago

have you tried this: https://github.com/actions/setup-node/issues/904#issuecomment-2158001248

      - name: Enable Corepack
        run: corepack enable