feat: add support for nexus npm registry
All checks were successful
validate-shared-actions / validate-shared-actions (pull_request) Successful in 49s
Aikido Security PR Check / Aikido Security Scan (pull_request) Successful in 1m21s

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Michael.Seele@schmalz.de 2026-05-06 14:14:07 +00:00
parent fc7e44e5d8
commit c5abac8152

View file

@ -19,6 +19,10 @@ inputs:
description: JFrog npm auth token
required: false
default: ""
nexus-token:
description: Nexus npm auth token
required: false
default: ""
run-scripts:
description: Comma-separated list of pnpm run scripts
required: false
@ -49,12 +53,23 @@ runs:
with:
version: ${{ inputs.pnpm-version }}
- name: Configure pnpm registry authentication
- name: Configure JFrog registry authentication
if: ${{ inputs.jfrog-token != '' }}
shell: bash
env:
JFROG_TOKEN: ${{ inputs.jfrog-token }}
run: pnpm set //schmalz.jfrog.io/artifactory/api/npm/default-npm/:_authToken "$JFROG_TOKEN"
run: |
pnpm set registry https://schmalz.jfrog.io/artifactory/api/npm/default-npm/
pnpm set //schmalz.jfrog.io/artifactory/api/npm/default-npm/:_authToken "$JFROG_TOKEN"
- name: Configure Nexus registry authentication
if: ${{ inputs.nexus-token != '' }}
shell: bash
env:
NEXUS_TOKEN: ${{ inputs.nexus-token }}
run: |
pnpm set registry https://nexus.schmalzgroup.com/repository/npm-all/
pnpm set //nexus.schmalzgroup.com/repository/npm-all/:_authToken "$NEXUS_TOKEN"
- name: Build
shell: bash