Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 604 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 604 Bytes

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 }}