mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
CI: Prospective fix for npm publishing
Make sure the binary packages also have the correct repository.url
This commit is contained in:
parent
a93ce32112
commit
10ba0776ec
2 changed files with 4 additions and 5 deletions
4
.github/workflows/publish_npm_package.yaml
vendored
4
.github/workflows/publish_npm_package.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue