Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,6 @@ jobs:
- name: Pack npm tarball
run: npm pack

- name: Check npm package size
run: |
TARBALL=$(ls *.tgz)
UNPACKED=$(npm pack --dry-run --json | node -e 'let data="";process.stdin.on("data",c=>data+=c);process.stdin.on("end",()=>console.log(JSON.parse(data)[0].unpackedSize))')
MAX=$((300 * 1024 * 1024))
echo "Packed tarball: $TARBALL"
echo "Unpacked size: $UNPACKED bytes (limit: $MAX)"
if [ "$UNPACKED" -gt "$MAX" ]; then
echo "❌ npm package is too large"
exit 1
fi

- name: Upload npm tarball
uses: actions/upload-artifact@v7
with:
Expand Down
Loading