Skip to content

bduff9/use-npmrc

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using .npmrc files in Github Actions

Use .npmrc

This action creates a .npmrc file during Github Actions. This is useful when needing to authenticate any private dependencies, such as private npm packages (FontAwesome Pro, for instance), Github private packages, etc.

Inputs

dot-npmrc

Required The contents of the .npmrc file. If you have one locally, copy its contents into a Github secret and reference that here.

working directory

Required The directory to create the .npmrc file in. Default "." for project root.

Example usage

  - name: Use .npmrc
    uses: bduff9/use-npmrc@v1.2
    with:
      dot-npmrc: ${{ secrets.DOT_NPMRC }}