Unable to publish package: 403 Repository can't accept package uploads


When I try to publish an Angular library as package to GPR, a 403 error occurs:

403 Forbidden - PUT https://npm.pkg.github.com/@my-org/my-lib - Repository “my-org/my-workspace” can’t accept package uploads.
In most cases, you or one of your dependencies are requesting
a package version that is forbidden by your security policy.

my package.json

  "name": "@my-org/my-lib",
  "version": "0.0.1",
  "peerDependencies": {
    "@angular/common": "^11.0.9",
    "@angular/core": "^11.0.9"
  "dependencies": {
    "tslib": "^2.0.0"
  "publishConfig": {
    "registry": "https://npm.pkg.github.com"
  "repository": {
    "url": "https://github.com/My-Org/my-workspace"

I use a Github Access Token with delete:packages, repo, write:packages permissions

I don’t know what to do about this error, is there anyone who can help me ?
Thank you

Hi @lheido,

Sorry about the delay in getting back to you!

I’m not sure what would cause a 403 error when publishing a npm package.

As a sanity check, could you try running this workflow:

You can click the Use this template button on this repo:

The workflow should work with an org or user account.

Please let me know how you get on!


Hi @jcansdale

Thanks for your reply, I think something is wrong with my organization, it is flagged… I can’t enable actions or see my organization in the Android app.

I have tried contacting Github support before, with no success.


What is the name of your org? I’ll check.