Merge pull request 'fix: use actions with node20 support' (#25) from bugfix/node20 into main
Reviewed-on: #25 Reviewed-by: Markus.Opahle@schmalz.de <Markus.Opahle@schmalz.de>
This commit is contained in:
commit
98fb3d79dd
1 changed files with 21 additions and 6 deletions
|
|
@ -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
|
||||
|
|
@ -36,16 +40,16 @@ runs:
|
|||
using: composite
|
||||
steps:
|
||||
# Pinned to commit SHA instead of a tag to prevent supply chain attacks.
|
||||
# actions/setup-node v6.4.0 — https://code.forgejo.org/actions/setup-node/commits/tag/v6.4.0
|
||||
# actions/setup-node v4.4.0 — https://code.forgejo.org/actions/setup-node/commits/tag/v4.4.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
|
||||
# Pinned to commit SHA instead of a tag to prevent supply chain attacks.
|
||||
# pnpm/action-setup v6.0.3 — https://code.forgejo.org/pnpm/action-setup/commits/tag/v6.0.3
|
||||
# pnpm/action-setup v4.3.0 — https://code.forgejo.org/pnpm/action-setup/commits/tag/v4.3.0
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@903f9c1a6ebcba6cf41d87230be49611ac97822e
|
||||
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1
|
||||
with:
|
||||
version: ${{ inputs.pnpm-version }}
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue