diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml index 72f9dae..ba02ba5 100644 --- a/.github/workflows/publish-npm.yaml +++ b/.github/workflows/publish-npm.yaml @@ -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