pascalgn / npm-publish-action

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

How to publish multiple packages to NPM? #33

Closed ljwagerfield closed 3 years ago

ljwagerfield commented 3 years ago

My repository contains two packages with matching version numbers:

I would like to publish both to NPM.

However, I cannot simply include the npm-publish-action twice (once for each working directory) as the 2nd will always be skipped, as the git tag will already exist by that point, due to the first action having created it.

What's the best solution here?

pascalgn commented 3 years ago

I think the best option could be to add a new configuration option to this action like create_tag which accepts true (default) or false. Then you can have 2 instances of the action, where the first one has create_tag: false

Do you want to create a PR for this?

ljwagerfield commented 3 years ago

Sure, how about this:

https://github.com/pascalgn/npm-publish-action/pull/34

pascalgn commented 3 years ago

I think this is fixed now. However, feel free to reopen this or create a new issue if you disagree or if there are any other problems! 👍