pascalgn / npm-publish-action

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

Does not work with latest yarn version #41

Closed tafaust closed 2 years ago

tafaust commented 2 years ago

I just tried to use your workflow because I think that it is pretty awesome! However, I ran into an issue because I am using the latest yarn version. Snippet of my package.json:

{
  "packageManager": "yarn@3.1.1",
}

and this workflow does only work with the classic yarn version. The latest yarn version doesn't have a yarn publish command.

Maybe it is a good idea to explicitly state this fact in the readme or to do a yarn set-version classic at the beginning of your script?

Keep up the good work!

tafaust commented 2 years ago

FYI I worked my way around it like this: https://github.com/tahesse/betapassword/blob/main/.github/workflows/npm-publish.yml#L16