fix(publish-npm): add npm registry url input to workflow
This commit is contained in:
7
.github/workflows/publish-npm.yaml
vendored
7
.github/workflows/publish-npm.yaml
vendored
@@ -10,6 +10,11 @@ on:
|
||||
required: true
|
||||
default: 'lts/*'
|
||||
type: string
|
||||
npm-registry-url:
|
||||
description: 'NPM registry url'
|
||||
required: false
|
||||
default: 'https://registry.npmjs.org'
|
||||
type: string
|
||||
secrets:
|
||||
NPM_TOKEN:
|
||||
required: true
|
||||
@@ -34,7 +39,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
registry-url: ${{ inputs.npm-registry-url }}
|
||||
|
||||
- name: 🛠️ Setup Node.js Corepack
|
||||
run: corepack enable
|
||||
|
||||
Reference in New Issue
Block a user