Skip to content
package

GitHub Action

.npmrc auth tokens

v1 Latest version

.npmrc auth tokens

package

.npmrc auth tokens

Add private repositories' auth tokens to .npmrc

Installation

Copy and paste the following snippet into your .yml file.

              

- name: .npmrc auth tokens

uses: digitalvisioncz/npmrc-github-action@v1

Learn more about this action in digitalvisioncz/npmrc-github-action

Choose a version

npmrc-github-action

This action adds auth token for private npm registries to the .npmrc file.

Inputs

token

Required Access Token (scope depends on the type of registry).

registryUrl

Required Url of your registry (without https://).

Example usage

uses: digitalvisioncz/npmrc-github-action
with:
  token: '***'
  registryUrl: 'npm.pkg.github.com'