ci: update npm before publishing packages

Newer npm is apparently needed for "trusted publishing".
This commit is contained in:
link2xt
2025-12-04 18:46:09 +00:00
committed by l
parent 23d95df66a
commit a50aa3b6e9
2 changed files with 10 additions and 0 deletions

View File

@@ -27,6 +27,11 @@ jobs:
node-version: 20
registry-url: "https://registry.npmjs.org"
# 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
working-directory: deltachat-jsonrpc/typescript
run: npm install --ignore-scripts