From c56f459dea434df98a41a275f885aebc1b5ba313 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 10 Dec 2025 15:30:38 +0100 Subject: [PATCH] CI: Pnpm publishing fix 14034230 npm is picky and wants a https url. --- .github/workflows/publish_npm_package.yaml | 6 ++++-- api/node/package.json | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_npm_package.yaml b/.github/workflows/publish_npm_package.yaml index ba78dbc6c5..fb57e0b733 100644 --- a/.github/workflows/publish_npm_package.yaml +++ b/.github/workflows/publish_npm_package.yaml @@ -133,11 +133,13 @@ jobs: shell: bash working-directory: api/node run: | - repo=`pnpm pkg get repository` + repo_ty=`pnpm pkg get repository.type` + repo_url=`pnpm pkg get repository.url` npx napi create-npm-dir -t . -c ./binaries.json mv index.${{ matrix.napi-rs-target }}.node npm/${{ matrix.napi-rs-target }}/ cd npm/${{ matrix.napi-rs-target }}/ - pnpm pkg set repository="$repo" + pnpm pkg set repository.type="$repo_ty" + pnpm pkg set repository.url="$repo_url" if [ "$RELEASE_INPUT" != "true" ]; then pnpm version $PKG_VERSION fi diff --git a/api/node/package.json b/api/node/package.json index 63623dd14b..3312b7f4eb 100644 --- a/api/node/package.json +++ b/api/node/package.json @@ -5,7 +5,10 @@ "types": "dist/index.d.ts", "homepage": "https://github.com/slint-ui/slint", "license": "SEE LICENSE IN LICENSE.md", - "repository": "github:slint-ui/slint", + "repository": { + "type": "git", + "url": "https://github.com/slint-ui/slint" + }, "keywords": [ "GUI", "UI",