pascalgn / npm-publish-action

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

Support for private packages #12

Closed n0n3br closed 4 years ago

n0n3br commented 4 years ago

I´m trying to publish a package with my username tag but I get an error:

error Couldn't publish package: "https://registry.yarnpkg.com/@n0n3br%2fsvelte-hash-spa-router: You must sign up for private packages"

Maybe you could implement support for the --access public modifier in the npm publish command to resolve this.

pomber commented 4 years ago

I'm having the same problem. I think the issue's title should be "Support scoped packages". Or maybe, add support for yarn publish args.

ydennisy commented 4 years ago

I believe you can just add the following to your package.json:

  "publishConfig": {
    "access": "public"
  },
pascalgn commented 4 years ago

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