Skip to content

Create a .npmrc file for the github private repository

Actions
Create a .npmrc file for the github private repository
4
Latest
Star (18)

Create a .npmrc file for the github repository

Github workflow action to create .npmrc file for github to the root folder

Pass all sensitive data using secrets.

Inputs

org_name

Organization name (Github repository name)

auth_token

AuthToken that is able to download files from the repository, can also be passed as env and it's rather recommended this way

Example usage

uses: ferluisxd/create-npmrc@3
with:
  org_name: lig0
  auth_token: 31352d11daasdf769942919dsafas594a5d
  env:
    AUTH_TOKEN: ${{ secrets.github_auth_token }}

Example output

@lig0:registry = https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=31352d11daasdf769942919dsafas594a5d

Create a .npmrc file for the github private repository 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 a .npmrc file for the github private repository
4
Latest

Create a .npmrc file for the github private repository 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.