Skip to content

Commit 3c50501

Browse files
committed
Update GitHub Actions workflow to simplify artifact handling; switch from merging prebuilds to directly downloading them and change publish command from bun to npm.
1 parent 452321d commit 3c50501

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,7 @@ jobs:
5959
bun-version: latest
6060
- uses: actions/download-artifact@v7
6161
with:
62-
path: artifacts
63-
pattern: prebuilds-*
64-
- name: Merge prebuilds
65-
run: |
66-
shopt -s nullglob
67-
mkdir -p prebuilds
68-
echo "Downloaded artifacts:"
69-
ls -R artifacts
70-
for dir in artifacts/prebuilds-*; do
71-
if [ -d "$dir/prebuilds" ]; then
72-
cp -R "$dir/prebuilds/." prebuilds/
73-
else
74-
cp -R "$dir/." prebuilds/
75-
fi
76-
done
77-
if ! find prebuilds -name "*.node" | grep -q .; then
78-
echo "No prebuilds found after download."
79-
exit 1
80-
fi
62+
path: prebuilds
63+
merge-multiple: true
8164
- run: bun scripts/prepublish.ts
82-
- run: bun publish --access public --tag latest
65+
- run: npm publish --access public --tag latest

0 commit comments

Comments
 (0)