Skip to content

Create .npmrc

Actions
Create .npmrc file
v1.0.0
Latest
Star (2)

create-npmrc

Github action to create .npmrc file for Github Package Registry dependency

Inputs

org_name

Required The name of user or organization owner of the repository.

auth_token

Required The Auth Token is responsible to able the download of the files of the repository, is highly recommended pass the token through a Github secret.

Secrets variables can be configured on repository settings > Secrets

always_auth

Required Force npm to always require authentication when accessing the registry.

Example usage

uses: bikutadesu/[email protected]
with:
  org_name: EXAMPLE_ORG
  auth_token: GITHUB_TOKEN
  always_auth: true

Example output

//npm.pkg.github.com/:_authToken=GITHUB_TOKEN
@EXAMPLE_ORG:registry=https://npm.pkg.github.com/
always-auth=true

Create .npmrc is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Create .npmrc file
v1.0.0
Latest

Create .npmrc is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.