Skip to content

Commit ed4a986

Browse files
authored
chore: Add setup-node registry-url parameter (#15)
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
1 parent fb4249f commit ed4a986

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ inputs:
2828
node-check-latest:
2929
description: 'Whether to check for the latest Node.js version'
3030
required: false
31+
node-registry:
32+
description: 'The registry URL to use for Node.js package installation and publishing'
33+
required: false
3134
setup-java:
3235
description: 'Whether to setup Java'
3336
required: false
@@ -145,6 +148,9 @@ outputs:
145148
node-version:
146149
description: 'The installed node version.'
147150
value: ${{ steps.setup-node.outputs.node-version }}
151+
node-registry-url:
152+
description: 'The registry URL used for package installation and publishing.'
153+
value: ${{ inputs.node-registry || 'https://registry.npmjs.org/' }}
148154
python-version:
149155
description: "The installed Python or PyPy version. Useful when given a version range as input."
150156
value: ${{ steps.setup-python.outputs.python-version }}
@@ -256,6 +262,7 @@ runs:
256262
echo "Version: ${{ inputs.node-version }}"
257263
echo "Cache: ${{ inputs.node-cache }}"
258264
echo "Check Latest: ${{ inputs.node-check-latest }}"
265+
echo "Registry URL: ${{ inputs.node-registry || 'https://registry.npmjs.org/' }}"
259266
echo "::endgroup::"
260267
261268
- name: Setup NodeJS
@@ -266,6 +273,7 @@ runs:
266273
node-version: ${{ inputs.node-version }}
267274
cache: ${{ inputs.node-cache }}
268275
check-latest: ${{ inputs.node-check-latest == 'true' }}
276+
registry-url: ${{ inputs.node-registry || 'https://registry.npmjs.org/' }}
269277

270278
- name: Set Up Python Parameters
271279
id: setup-python-params

0 commit comments

Comments
 (0)