mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-08-04 00:00:08 +08:00
ci: run workflows on node 24
Also drops the explicit `npm install -g npm@latest` step: node 24 bundles npm 11.16, well over the >= 11.5.1 that trusted publishing requires. Pulling an unpinned npm@latest right before publishing 258 packages was the larger risk of the two.
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4.4.0
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 24
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -43,14 +43,11 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4.4.0
|
||||
with:
|
||||
node-version: 22
|
||||
# node 24 bundles npm 11.16, over the >= 11.5.1 that trusted publishing needs
|
||||
node-version: 24
|
||||
cache: npm
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
# node 22 ships npm 10.x; trusted publishing (OIDC) requires npm >= 11.5.1
|
||||
- name: Update npm
|
||||
run: npm install -g npm@latest
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
||||
Reference in New Issue
Block a user