Skip to content

Commit e640696

Browse files
committed
feat: Added github-registry variable
1 parent a372d4c commit e640696

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ inputs:
2323
description: "Install dependencies"
2424
required: false
2525
default: "true"
26+
github-registry:
27+
description: "Create .npmrc file for organization scoped Github Packages"
28+
required: false
29+
default: "true"
30+
2631

2732
runs:
2833
using: "composite"
@@ -46,6 +51,7 @@ runs:
4651
shell: bash
4752

4853
- name: Create .npmrc File for Github Packages
54+
if: ${{ inputs.github-registry == 'true' }}
4955
run: |
5056
NPMRC_FILE="$GITHUB_WORKSPACE/.npmrc"
5157
echo "NPMRC_FILE=$NPMRC_FILE" >> $GITHUB_ENV

0 commit comments

Comments
 (0)