fix(ci): aggiunge input npm-version per compatibilità lockfile npm@11
- quality-gates.yml: nuovo input npm-version con step condizionale upgrade - docker-release.yml: idem - examples/documentazione: ci.yml e release.yml passano npm-version: '11' Fixes #2 @25m
This commit is contained in:
@@ -6,6 +6,9 @@ on:
|
||||
node-version:
|
||||
type: string
|
||||
default: '22.17'
|
||||
npm-version:
|
||||
type: string
|
||||
default: ''
|
||||
runner:
|
||||
type: string
|
||||
default: 'catthehacker-latest'
|
||||
@@ -22,6 +25,10 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '22.17' }}
|
||||
|
||||
- name: Upgrade npm
|
||||
if: inputs.npm-version != ''
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://gitea.com/actions/cache@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user