Skip to content

Commit

Permalink
added siteinfo step to release (Esri#1313)
Browse files Browse the repository at this point in the history
* added siteinfo step to release

* save to dist
  • Loading branch information
gavinr authored Feb 22, 2022
1 parent 87adbdf commit 74b7991
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 74b7991

Please sign in to comment.