From 46419fc0531b9be100c7d9a3a031f3342f21f744 Mon Sep 17 00:00:00 2001 From: NirBarak-RecoLabs Date: Sun, 26 Apr 2026 10:25:36 +0300 Subject: [PATCH] ci: fix npm publish workflow The publish workflow upgraded npm via `npm install -g npm@latest` to obtain a version that supports trusted publishing. On the current ubuntu-latest runner this corrupts the bundled npm and fails with `Cannot find module 'promise-retry'`, blocking releases on every tag push. Bumping `setup-node` to Node 24 ships an npm new enough for trusted publishing out of the box, so the in-place upgrade step is dropped. --- .github/workflows/publish-npm.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 5cfbc29a..5f9892e4 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -20,12 +20,9 @@ jobs: - uses: actions/setup-node@v5 with: - node-version: '22' + node-version: '24' registry-url: 'https://registry.npmjs.org' - - name: Install latest npm (required for trusted publishing) - run: npm install -g npm@latest - - name: Build WASM and TypeScript run: bash scripts/build-npm.sh