We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c4b832 commit 2198022Copy full SHA for 2198022
1 file changed
.github/workflows/publish.yml
@@ -40,6 +40,7 @@ jobs:
40
with:
41
name: prebuilds-${{ matrix.os }}-${{ matrix.arch }}
42
path: prebuilds
43
+ if-no-files-found: error
44
45
publish:
46
needs: prebuilds
@@ -60,7 +61,21 @@ jobs:
60
61
62
path: .
63
merge-multiple: true
64
+ pattern: prebuilds-*
65
+ - name: Ensure prebuilds present
66
+ run: |
67
+ if [ ! -d prebuilds ]; then
68
+ echo "prebuilds/ not found, merging artifact directories..."
69
+ mkdir -p prebuilds
70
+ for dir in prebuilds-*; do
71
+ if [ -d "$dir/prebuilds" ]; then
72
+ cp -R "$dir/prebuilds/." prebuilds/
73
+ fi
74
+ done
75
76
+ if ! find prebuilds -name "*.node" | grep -q .; then
77
+ echo "No prebuilds found after download."
78
+ exit 1
79
80
- run: bun scripts/prepublish.ts
81
- run: bun publish --access public --tag latest
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments