fix(release): fail on GitHub binary upload errors

This commit is contained in:
Xuanwo
2026-10-07 18:39:03 +08:00
parent 711deef766
commit 287a7d33f9
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -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
View File
@@ -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",