mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 06:58:40 +00:00
Update CDN version numbers and SRI hashes on release
This commit is contained in:
@@ -112,6 +112,10 @@ git add .gitignore dist/
|
||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$VERSION'",|' package.json
|
||||
rm -f package.json.bak
|
||||
|
||||
# Update the version number in CDN URLs included in the README files,
|
||||
# and regenerate the Subresource Integrity hash for these files.
|
||||
node update-sri.js "${VERSION}" README.md contrib/*/README.md
|
||||
|
||||
# Make the commit and tag, and push them.
|
||||
git add package.json bower.json
|
||||
git commit -n -m "v$VERSION"
|
||||
@@ -129,6 +133,10 @@ if [ ! -z "$NEXT_VERSION" ]; then
|
||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' package.json
|
||||
rm -f package.json.bak
|
||||
|
||||
# Refer to the just-released version in the documentation of the
|
||||
# development branch, too. Most people will read docs on master.
|
||||
node update-sri.js "${VERSION}" README.md contrib/*/README.md
|
||||
|
||||
git add package.json bower.json
|
||||
git commit -n -m "Bump master to v$NEXT_VERSION-pre"
|
||||
git push origin "$BRANCH"
|
||||
|
Reference in New Issue
Block a user