Skip to content

Instantly share code, notes, and snippets.

@cosmomathieu
Last active June 5, 2020 01:23
Show Gist options
  • Save cosmomathieu/3290f5b3ed30211badbbaf021cbd416e to your computer and use it in GitHub Desktop.
Save cosmomathieu/3290f5b3ed30211badbbaf021cbd416e to your computer and use it in GitHub Desktop.
Creating GitHub packages

Publishing to GitHub Packages

Login

npm login --registry=https://npm.pkg.github.com --scope=@pagestudiocms

Username: 
Password: <gitHub access token>
Email (optional):

Publish

Then run

npm publish
{
"name": "pagestudio-node-development-server",
"version": "1.0.0",
"description": "PageStudio Node.js Server",
... anything else
"publishConfig": {
"registry": "https://npm.pkg.github.com/@pagestudiocms"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment