Skip to content

Commit

Permalink
build: pack to get new shasum
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Oct 2, 2023
1 parent a8df56d commit 5bda187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
function publish_npm() {
local lib=$1

LOCAL_SHASUM=$(npm show @dfinity/"$lib" dist.shasum)
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' ')

Expand Down

0 comments on commit 5bda187

Please sign in to comment.