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
|
required: true
|
||||||
default: 'lts/*'
|
default: 'lts/*'
|
||||||
type: string
|
type: string
|
||||||
|
npm-registry-url:
|
||||||
|
description: 'NPM registry url'
|
||||||
|
required: false
|
||||||
|
default: 'https://registry.npmjs.org'
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
NPM_TOKEN:
|
NPM_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
@@ -34,7 +39,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.node-version }}
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: ${{ inputs.npm-registry-url }}
|
||||||
|
|
||||||
- name: 🛠️ Setup Node.js Corepack
|
- name: 🛠️ Setup Node.js Corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
|
|||||||
Reference in New Issue
Block a user