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