Skip to content

Commit c714045

Browse files
committed
package individual npm packages
1 parent 3fe10ed commit c714045

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ jobs:
8181
run: tar -vcaf npm-workspace.tar.xz -C npm .
8282
- name: Generate release notes
8383
run: ./generate-release-notes.sh
84+
- name: Package individual npm packages
85+
run: ./package-npm-packages.sh
8486
- name: Create GitHub release for tag
8587
if: startsWith(github.ref, 'refs/tags/v')
8688
uses: ncipollo/release-action@v1
8789
with:
88-
artifacts: npm-workspace.tar.xz
90+
artifacts: "*.tar.xz"
8991
artifactContentType: application/x-xz
9092
bodyFile: release-notes.md
9193
draft: true

package-npm-packages.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
5+
for dir in */; do
6+
[ -d "$dir" ] && tar -cJf "sharp-libvips-${dir%/}-1.2.5.tar.xz" "$dir"
7+
done

0 commit comments

Comments
 (0)