Hi i got problems with deploying my npm package. First of all I deployed it manually by type npm publish everything worked, package was published. But I wanted it to be published every time i push changes on main. So I add that commands to my github actions CI config
- name: Run build
run: yarn build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
And it publishing that package on github packages but not on npm. I tried to publish it manually but i got that error npm
$ npm publish
npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in.
npm ERR! need auth You need to authorize this machine using `npm adduser`
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\makow\AppData\Local\npm-cache\_logs\2021-11-02T14_22_20_432Z-debug.log