diff --git a/.github/workflows/publish_npm_package.yaml b/.github/workflows/publish_npm_package.yaml index 926dce674c..51b7a0b8d9 100644 --- a/.github/workflows/publish_npm_package.yaml +++ b/.github/workflows/publish_npm_package.yaml @@ -132,10 +132,12 @@ jobs: - name: Create package shell: bash working-directory: api/node - run: | + run: + repo=`pnpm pkg get repository` 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 if [ "$RELEASE_INPUT" != "true" ]; then pnpm version $PKG_VERSION fi diff --git a/api/node/package.json b/api/node/package.json index 3312b7f4eb..63623dd14b 100644 --- a/api/node/package.json +++ b/api/node/package.json @@ -5,10 +5,7 @@ "types": "dist/index.d.ts", "homepage": "https://github.com/slint-ui/slint", "license": "SEE LICENSE IN LICENSE.md", - "repository": { - "type": "git", - "url": "https://github.com/slint-ui/slint" - }, + "repository": "github:slint-ui/slint", "keywords": [ "GUI", "UI",