⬆️ chore(ci): aggiorna setup-node, cache, setup-python e build-push-action
- setup-node v4 → v7, con package-manager-cache: false: la cache npm resta allo step actions/cache - actions/cache v4 → v6 - setup-python v5.2.0 → v7 - docker/build-push-action v6 → v7 - upload-artifact resta a v3: dalla v4 su Gitea dà GHESNotSupportedError Fixes #20 @1h30m
This commit is contained in:
1 parent
8e74f98f93
commit
0f205b954a
21 files changed
+84
-48
No files matched your search
@@ -21,16 +21,19 @@ jobs:
|
||||
uses: https://github.com/actions/checkout@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
uses: https://github.com/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
# La cache npm resta allo step actions/cache: dalla v5 setup-node la accende
|
||||
# da solo se package.json ha packageManager, e la duplicherebbe.
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Upgrade npm
|
||||
if: inputs.npm-version != ''
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -79,7 +82,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v6
|
||||
uses: https://github.com/docker/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
|
||||
Reference in new issue
Block a user