You can now use a `GITHUB_TOKEN` when publishing or installing a npm or Apache Maven package to GitHub Package Registry from a GitHub Action. You can also publish or install packages of any type to GitHub Package Registry from a GitHub Action using a Personal Access Token.

As of right now, only users and organizations who are part of the GitHub Package Registry Beta can publish packages.

Learn more about GitHub Package Registry Beta