This videos shows how to use the new "trusted publishing" method of publishing NPM packages from CI, I am using GitHub Actions, but other supported CI providers should work the same. Find the full source code in the blog post https://glebbahmutov.com/blog/npm-publish-from-github/