ci: publish cli.js *.node modules to the existing cli.js release (#4883)

This commit is contained in:
Amr Bashir 2022-08-09 16:36:21 +02:00 committed by GitHub
parent 08584fc657
commit 5813f08386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -171,6 +171,7 @@ jobs:
token: ${{ secrets.TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-clijs
client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }'
- name: Trigger cli.rs publishing workflow
if: |

View File

@ -397,3 +397,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_ID: ${{ github.event.client_payload.releaseId }}

View File

@ -37,7 +37,7 @@
}
},
"devDependencies": {
"@napi-rs/cli": "2.10.3",
"@napi-rs/cli": "2.11.0",
"cross-env": "7.0.3",
"cross-spawn": "7.0.3",
"fs-extra": "10.1.0",
@ -55,7 +55,7 @@
"artifacts": "napi artifacts",
"build:release": "cross-env TARGET=node napi build --platform --release",
"build": "cross-env TARGET=node napi build --platform",
"prepublishOnly": "napi prepublish -t npm",
"prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID",
"prepack": "cp ../schema.json .",
"test": "jest --runInBand --forceExit --no-cache",
"version": "napi version",