From d02eccd303f829928ea06773b2ad4341fea4b8d1 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 15 May 2024 21:57:24 +0000 Subject: [PATCH] ci: run actions/setup-node before npm publish Otherwise it does not try to use NODE_AUTH_TOKEN. --- .github/workflows/deltachat-rpc-server.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deltachat-rpc-server.yml b/.github/workflows/deltachat-rpc-server.yml index 2779c40e0..bfac1cde2 100644 --- a/.github/workflows/deltachat-rpc-server.yml +++ b/.github/workflows/deltachat-rpc-server.yml @@ -390,6 +390,12 @@ jobs: --repo ${{ github.repository }} \ deltachat-rpc-server/npm-package/*.tgz + # Configure Node.js for publishing. + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: "https://registry.npmjs.org" + - name: Publish npm packets for prebuilds and `@deltachat/stdio-rpc-server` if: github.event_name == 'release' working-directory: deltachat-rpc-server/npm-package