mirror of
https://github.com/chatmail/core.git
synced 2026-10-02 03:00:40 +03:00
ci: update Node version to 24
https://docs.npmjs.com/trusted-publishers recommends node-version 24 and not updating npm separately, this change copies the recommended configuration. Also update node version to 24 in non-release workflows, version 18 is EOL. There is a version 26 already, but 24 is LTS. Also disable cache for release pipelines.
This commit is contained in:
@@ -513,15 +513,12 @@ jobs:
|
|||||||
deltachat-rpc-server/npm-package/*.tgz
|
deltachat-rpc-server/npm-package/*.tgz
|
||||||
|
|
||||||
# Configure Node.js for publishing.
|
# Configure Node.js for publishing.
|
||||||
|
# Check <https://docs.npmjs.com/trusted-publishers> for the version requirements.
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 24
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
package-manager-cache: false # never use caching in release builds
|
||||||
# Ensure npm 11.5.1 or later is installed.
|
|
||||||
# It is needed for <https://docs.npmjs.com/trusted-publishers>
|
|
||||||
- name: Update npm
|
|
||||||
run: npm install -g npm@latest
|
|
||||||
|
|
||||||
- name: Publish npm packets for prebuilds and `@deltachat/stdio-rpc-server`
|
- name: Publish npm packets for prebuilds and `@deltachat/stdio-rpc-server`
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
|
|||||||
@@ -22,15 +22,13 @@ jobs:
|
|||||||
show-progress: false
|
show-progress: false
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
# Configure Node.js for publishing.
|
||||||
|
# Check <https://docs.npmjs.com/trusted-publishers> for the version requirements.
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 24
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
package-manager-cache: false # never use caching in release builds
|
||||||
# Ensure npm 11.5.1 or later is installed.
|
|
||||||
# It is needed for <https://docs.npmjs.com/trusted-publishers>
|
|
||||||
- name: Update npm
|
|
||||||
run: npm install -g npm@latest
|
|
||||||
|
|
||||||
- name: Install dependencies without running scripts
|
- name: Install dependencies without running scripts
|
||||||
working-directory: deltachat-jsonrpc/typescript
|
working-directory: deltachat-jsonrpc/typescript
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 24
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 24
|
||||||
- name: Add Rust cache
|
- name: Add Rust cache
|
||||||
uses: swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
uses: swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: 24
|
||||||
- name: npm install
|
- name: npm install
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: npm run build
|
- name: npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user