npm publish
publishes only part of the files
#26808
-
When I publish locally (on my machine) the publish works as expected: |
Beta Was this translation helpful? Give feedback.
-
Found the issue - it was the npm version. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update @YonatanKra. |
Beta Was this translation helpful? Give feedback.
-
Yes. I had a |
Beta Was this translation helpful? Give feedback.
-
Ahh gotcha! Glad you caught up to that nasty one :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
In one of my repositories I’ve started publishing the files using gha.
In the same repo, when doing
npm publish
, the package would have publish as expected.When I’m using the same command in the repository, only some of the files are being published.
In my
package.json
I’ve set npm to publish two folders:Here are images from the repository’s relevant action:
You can see that the
template
folder exists but only a few files are packaged. The template folder has many more files and folders.What can be the problem here? Is there anything different when publishing from gha?
Thanks!
Beta Was this translation helpful? Give feedback.
Found the issue - it was the npm version.
gha has version 6.x, while locally I’ve been using 7.x.