Skip to content
link

GitHub Action

Configure NPM Scope Action

v1.1.0 Latest version

Configure NPM Scope Action

link

Configure NPM Scope Action

Github Action to set scope in a .npmrc file

Installation

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

              

- name: Configure NPM Scope Action

uses: trejjam/[email protected]

Learn more about this action in trejjam/npm-scope-action

Choose a version

Configure NPM Scope GitHub Action

Github Action to set scope in a .npmrc file

.github/workflows/main.yml

Inputs

accessToken required

organization required

feed required

username fallback to organization

email fallback to dummy string

Example usage

uses: trejjam/npm-scope-action
with:
  accessToken: ${{ secrets.NPM_SCOPE_PERSONAL_ACCESS_TOKEN }}
  organization: ${{ secrets.NPM_SCOPE_ORGANIZATION }}
  feed: ${{ secrets.NPM_SCOPE_FEED }}