From c87077f8b0f7715734f8049f5e272b86454a9790 Mon Sep 17 00:00:00 2001 From: Michael Seele Date: Wed, 6 May 2026 14:14:07 +0000 Subject: [PATCH] feat: add support for nexus npm registry Co-authored-by: Copilot --- pnpm-build/action.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pnpm-build/action.yml b/pnpm-build/action.yml index e126461..4d3397e 100644 --- a/pnpm-build/action.yml +++ b/pnpm-build/action.yml @@ -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 @@ -61,12 +65,23 @@ runs: key: ${{ runner.os }}-pnpm-${{ inputs.pnpm-version }}-${{ hashFiles(format('{0}/pnpm-lock.yaml', inputs.working-directory)) }} restore-keys: ${{ runner.os }}-pnpm-${{ 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