pascalgn / npm-publish-action

GitHub action to automatically publish packages to npm
MIT License
221 stars 29 forks source link

getting an error `Ref undefined is not the default branch: master` #3

Closed inodb closed 4 years ago

inodb commented 4 years ago

Thanks for making this action! Super useful!

I'm getting the following error:

Ref undefined is not the default branch: master

Any clue what I'm doing wrong: https://github.com/genome-nexus/genome-nexus-cli/blob/master/.github/workflows/npm-publish.yml ?

inodb commented 4 years ago

Ah never mind - I misunderstood how this action works. I was only running it on each tagged release, but it works the other way around. One creates a commit where the version is updated in package.json. This action then creates a tag and uploads it to NPM