GitHub Packages not working - Can't publish packages


I’m having a really hard time trying to get this to work. I’ve never had this much trouble with the npm registry.

So basically I’m trying just to npm login then npm publish the package.

$ npm login --scope=@generic-mmo --registry=
> Username: <MY_GITHUB_USERNAME> (generic-mmo)
> Password: <PERSONAL_ACCESS_TOKEN> (write:packages, read:packages, delete:packages)

$ npm publish
npm notice 
npm notice 📦  @generic-mmo/buildtools@0.0.0
npm notice === Tarball Contents === 
npm notice 51B    bin/build                             
npm notice 51B    bin/clean                             
npm notice 34.5kB LICENSE                               
npm notice 298B   scripts/build.js                      
npm notice 317B   scripts/clean.js                      
npm notice 233B   configuration/jest/jest-transformer.js
npm notice 506B   configuration/jest/jest.config.js     
npm notice 636B   package.json                          
npm notice === Tarball Details === 
npm notice name:          @generic-mmo/buildtools                 
npm notice version:       0.0.0                                   
npm notice package size:  12.9 kB                                 
npm notice unpacked size: 36.6 kB                                 
npm notice shasum:        8cb80ac6af5dcd71541b2d0da27409ac81b5b71e
npm notice integrity:     sha512-hGboKlbM49kol[...]jkm8JS8Jfr7GQ==
npm notice total files:   8                                       
npm notice 
npm ERR! code E401
npm ERR! 401 Unauthorized - PUT - Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.

If I would provide my GitHub user’s password instead of a PAT I would get such error:
npm ERR! 401 Unauthorized - PUT - Error authenticating user: Requires authentication

I’m out of ideas. Has anyone had a similar problem, and don’t mind sharing a solution?