https://github.com/csbun/test-github-package-npm
this is a test npm package publish to github package.
https://github.com/csbun/test-github-package-npm
Last synced: about 2 months ago
JSON representation
this is a test npm package publish to github package.
- Host: GitHub
- URL: https://github.com/csbun/test-github-package-npm
- Owner: csbun
- License: mit
- Created: 2019-09-26T11:41:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T14:12:06.000Z (over 5 years ago)
- Last Synced: 2025-01-07T23:22:26.602Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-github-package-npm
this is a test npm package publish to [github package](https://help.github.com/en/articles/about-github-package-registry).
## ❓ How
### Configuring Account
- [Creating a personal access token for the command line](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)
- Log in with npm using your username and personal access token```sh
npm login --registry=https://npm.pkg.github.com/OWNER
> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC EMAIL ADDRESS
```### Configuring package.json
GitHub Package Registry only supports scoped NPM packages. Scoped packages have names with the format of `@owner/name` with lower case. And add an a publishConfig entry wiht `https://npm.pkg.github.com/`.
```json
{
"name": "@csbun/test-github-package-npm",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
}
```### Publish
```sh
npm publish
```## 🤫 Where
Visit https://github.com/`@OWNER`/`@REPO`/packages
For Example:
[https://github.com/csbun/test-github-package-npm/packages](https://github.com/csbun/test-github-package-npm/packages)