mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
CI: Pnpm publishing fix 14034230
npm is picky and wants a https url.
This commit is contained in:
parent
68c720542d
commit
c56f459dea
2 changed files with 8 additions and 3 deletions
6
.github/workflows/publish_npm_package.yaml
vendored
6
.github/workflows/publish_npm_package.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue