Skip to content

Commit 3f4655d

Browse files
committed
Include bundles in release
1 parent 66c863f commit 3f4655d

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,22 @@ jobs:
6161
tar -czf "artifacts/${PKG_NAME}_v${VERSION}.tar.gz" \
6262
-C "libraries/$PKG_NAME" .
6363
64+
- name: Collect release assets
65+
run: |
66+
PKG_FULL=${{ steps.tag.outputs.name }}
67+
PKG_NAME="${PKG_FULL#@*/}"
68+
69+
mkdir -p release
70+
71+
# copy tarball
72+
cp artifacts/*.tar.gz release/
73+
74+
# copy exact dist files
75+
cp "libraries/$PKG_NAME/dist/$PKG_NAME.js" release/
76+
cp "libraries/$PKG_NAME/dist/$PKG_NAME.min.js" release/
77+
6478
- name: Upload release asset
6579
uses: softprops/action-gh-release@v2
6680
with:
67-
files: artifacts/*.tar.gz
81+
files: release/**
82+

0 commit comments

Comments
 (0)