When I merge to master
I have a GitLab CI/CD pipeline which as part of the deployment process runs npm version patch
to up the version of my npm package in package.json
However I get the following output when I try to push the result of the tag applied by npm version patch
. So the npm version
command has worked correctly, I just can't get it to push into the master branch.
What do I need to do to get the pipeline script to push the result of the tag applied by npm version to master
?
$ npm version patch
v0.4.3
$ git push origin master:master
error: src refspec master does not match any.
error: failed to push some refs to 'https://gitlab-ci-token:[MASKED]@gitlab.com/myrepo-name/group/project-name/company-project-name.git'
ERROR: Job failed: exit code 1