Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Trial of create our own npm package using github packages registry

License

Notifications You must be signed in to change notification settings

alfonsodguez/github-package-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-github-package

Example of npm package using GitHub packages registry

Basic usage

  • Install package in your project
    $ npm install @alfonsodguez/nodejs-github-package@1.0.2
    
  • create .npmrc file in the root of project and add the next configuration:
    @alfonsodguez:registry=https://npm.pkg.github.com
    //npm.pkg.github.com/:_authToken=GITHUB_TOKEN
    
    you need authentication token to use the package

Maintenance

Follow the steps below (you need to be registered into npm) to publish and update the package:

  • Login authentication
    $ npm login --scope=@OWNER --registry=https://npm.pkg.github.com
    
    > Username: USERNAME
    > Password: TOKEN
    > Email: PUBLIC-EMAIL-ADDRESS
    
  • Publishing packages (use also to update)
    $ npm run release
    

About

Trial of create our own npm package using github packages registry

Topics

Resources

License

Stars

Watchers

Forks