element-plus/scripts/file-check.sh
JeremyWuuuuu 9172120d52
test(ci): add build product checking for prs (#6558)
* test(ci): add build product checking for prs

- Add build product testing to the CI

* Fix error syntax

* Tweak with output table
2022-03-12 17:17:16 +08:00

13 lines
309 B
Bash
Executable File

#! /bin/bash
CURRENT_PUBLISHED_TARBALL="$(npm view element-plus dist.tarball)"
echo $CURRENT_PUBLISHED_TARBALL
mkdir -p tmp
curl -o ./tmp/latest.tgz $CURRENT_PUBLISHED_TARBALL
tar zxvf ./tmp/latest.tgz -C ./tmp
diff -qr ./tmp/package ./dist/element-plus | grep "Only" | cut -c 8- | sort > ./tmp/diff.txt