Prevent infinite loop with Gitlab pipeline and git pushing
问题 I have a project where I have 4 environments (dev, test, staging and prod) and we have branches for each (develop, test, staging master respectively). We use npm version to bump version in package.json but also add a git tag. After that we run the build and on success of that, we push the commit and tag created by the npm version command. So in my pipeline job, I have this (simplified): dev build: stage: build only: - develop@username/reponame script: - npm version patch -m "[ci skip] %s" -