Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/build/publish-npm' into build/pu…
Browse files Browse the repository at this point in the history
…blish-npm
  • Loading branch information
peterpeterparker committed Oct 2, 2023
2 parents 5bda187 + 9810dd7 commit 65cbc6b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function publish_npm() {
LOCAL_SHASUM=$(npm pack -w packages/"$lib" --json | jq '.[] | .shasum' | sed -r 's/^"|"$//g')

NPM_TARBALL=$(npm show @dfinity/"$lib" dist.tarball)
NPM_SHASUM=$(curl -s "$NPM_TARBALL" 2>&1 | shasum | cut -f1 -d' ')
NPM_SHASUM=$(curl -s "$NPM_TARBALL" 2>&1 | shasum | cut -f1 -d' ')

if [ "$LOCAL_SHASUM" == "$NPM_SHASUM" ]; then
echo "No changes in @dfinity/$lib need to be published to NPM."
Expand All @@ -20,7 +20,6 @@ function publish_npm() {
# Tips: libs use by other libs first
LIBS=utils,ledger,nns-proto,nns,sns,cmc,ckbtc,ic-management

for lib in $(echo $LIBS | sed "s/,/ /g")
do
publish_npm "$lib"
done
for lib in $(echo $LIBS | sed "s/,/ /g"); do
publish_npm "$lib"
done

0 comments on commit 65cbc6b

Please sign in to comment.