github icon indicating copy to clipboard operation
github copied to clipboard

Publish to GitHub Packages on release

Open pathurs opened this issue 4 years ago • 2 comments

I cannot see any direct support for publishing to the GitHub Packages, is there support for this, or any plans to do so?

pathurs avatar Oct 07 '20 09:10 pathurs

yes, it should just work:tm:

Set the registry in an .npmrc as described at https://docs.github.com/en/free-pro-team@latest/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages

  1. In the same directory as your package.json file, create or edit an .npmrc file to include a line specifying GitHub Packages URL and the account owner. Replace OWNER with the name of the user or organization account that owns the repository containing your project.

    registry=https://npm.pkg.github.com/OWNER
    

gr2m avatar Oct 07 '20 18:10 gr2m

@gr2m I'll try this tonight, if it works I'll let you know. I might even try and write up some documentation and submit a PR

pathurs avatar Oct 07 '20 22:10 pathurs