From 74b7991f34913434a6b58ec233e7b9140cacc2aa Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Tue, 22 Feb 2022 23:09:12 +0000 Subject: [PATCH] added siteinfo step to release (#1313) * added siteinfo step to release * save to dist --- scripts/release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index c113284a2..af5df9c4d 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -7,6 +7,10 @@ NAME=$(node --eval "console.log(require('./package.json').name);") # build and test npm test || exit 1 +# Integrity string and save to siteData.json +JS_INTEGRITY=$(cat dist/esri-leaflet.js | openssl dgst -sha512 -binary | openssl base64 -A) +echo "{\"name\": \"esri-leaflet\",\"version\": \"$VERSION\",\"lib\": {\"path\": \"dist/esri-leaflet.js\",\"integrity\": \"sha512-$JS_INTEGRITY\"}}" > dist/siteData.json + # checkout temp branch for release git checkout -b gh-release