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:
|
||||
|
||||
@@ -6,6 +6,9 @@ on:
|
||||
node-version:
|
||||
type: string
|
||||
default: '22.17'
|
||||
npm-version:
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
quality-gates:
|
||||
@@ -19,6 +22,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:
|
||||
|
||||
@@ -22,5 +22,5 @@ jobs:
|
||||
quality-gates:
|
||||
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/quality-gates.yml@v1
|
||||
secrets: inherit
|
||||
# with:
|
||||
# node-version: '22.17' # opzionale, default già impostato
|
||||
with:
|
||||
npm-version: '11' # lockfile generato con npm@11, runner usa npm@10 di default
|
||||
|
||||
@@ -22,6 +22,7 @@ jobs:
|
||||
secrets: inherit
|
||||
with:
|
||||
runner: catthehacker-latest # runner con Docker pre-installato
|
||||
npm-version: '11' # lockfile generato con npm@11, runner usa npm@10 di default
|
||||
|
||||
auto-release:
|
||||
needs: [docker-release]
|
||||
|
||||
Reference in New Issue
Block a user