Skip to content

Commit

Permalink
[Actions] Updated .github/actions/npm/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Feb 7, 2025
1 parent 843c506 commit a141fad
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ inputs:
NPM_REGISTRY:
description: 'The NPM Registry to use'
required: true
NPM_CACHE_CERT:
description: 'The NPM Registry cert'
required: false

# General
BUILD_VERSION:
Expand Down Expand Up @@ -76,6 +79,15 @@ runs:
npm config set fetch-retry-mintimeout 15000
npm config set fetch-retry-maxtimeout 90000
- name: "Npm: Local Cert"
if: inputs.NPM_CACHE_CERT != ''
shell: bash
run: |
echo "$NPM_CACHE_CERT" > "${{github.workspace}}/npm.crt"
npm config set cafile "${{github.workspace}}/npm.crt"
env:
NPM_CACHE_CERT: ${{inputs.NPM_CACHE_CERT}}

- name: "Npm: Clear node modules"
shell: bash
run: rm -rf "${{github.workspace}}/node-modules"
Expand Down

0 comments on commit a141fad

Please sign in to comment.