Skip to content

Commit 4c31090

Browse files
committed
add registry-url and scope
1 parent fa1c525 commit 4c31090

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

action.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
name: Setup Node and pnpm
22

3+
inputs:
4+
registry-url:
5+
default: 'https://registry.npmjs.org'
6+
required: false
7+
type: string
8+
description: 'Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN.'
9+
10+
scope:
11+
required: false
12+
type: string
13+
description: 'Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/).'
14+
315
runs:
416
using: composite
517
steps:
@@ -8,7 +20,8 @@ runs:
820
- uses: actions/setup-node@v5
921
with:
1022
node-version-file: .node-version
11-
registry-url: 'https://registry.npmjs.org'
23+
registry-url: ${{ inputs.registry-url }}
24+
scope: ${{ inputs.scope }}
1225
# see pnpm cache setting below
1326

1427
- name: Get pnpm store directory

0 commit comments

Comments
 (0)