mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-12 14:52:26 +00:00
fix(release): fail on GitHub binary upload errors
This commit is contained in:
@@ -447,6 +447,13 @@ jobs:
|
||||
ARGS="$ARGS --tag preview"
|
||||
fi
|
||||
npm publish $ARGS
|
||||
- name: Upload release binaries
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
# napi prepublish logs upload failures without failing the job.
|
||||
# Keep this separate so a missing release asset fails publication.
|
||||
run: gh release upload "$GITHUB_REF_NAME" nodejs-artifacts/*.node
|
||||
report-failure:
|
||||
name: Report Workflow Failure
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@
|
||||
"postdocs": "node typedoc_post_process.js",
|
||||
"lint": "biome check . && biome format .",
|
||||
"lint-fix": "biome check --write . && biome format --write .",
|
||||
"prepublishOnly": "napi prepublish -t npm",
|
||||
"prepublishOnly": "napi prepublish -t npm --no-gh-release",
|
||||
"test": "jest --verbose",
|
||||
"integration": "S3_TEST=1 pnpm test",
|
||||
"universal": "napi universalize",
|
||||
|
||||
Reference in New Issue
Block a user