pascalgn / npm-publish-action

GitHub action to automatically publish packages to npm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for private packages

n0n3br opened this issue · comments

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.

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.

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

  "publishConfig": {
    "access": "public"
  },

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! 👍