diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index eed558d5..48a54fd1 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -61,6 +61,7 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} + # Do this before npm configure because it writes the package.json version - name: Write version to files run: | ./deployment/write-versions.sh ${{ steps.next-version.outputs.result }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 2df8413b..a276ef92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ All notable changes to the Branch Web SDK will be documented here. The Branch Web SDK adheres to [Semantic Versioning](http://semver.org/). ## [VERSION] - unreleased +## [2.85.2] - 2024-11-11 +- Updates release process ## [2.85.1] - 2024-11-04 - Updates qr image download to avoid errors ## [2.85.0] - 2024-04-10 diff --git a/Makefile b/Makefile index 65e8ce5b..0321a8b1 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,6 @@ all: dist/build.min.js dist/build.js test/branch-deps.js test/integration-test.h clean: rm -f dist/** docs/web/3_branch_web.md test/branch-deps.js dist/build.min.js.gz test/integration-test.html release: clean all dist/build.min.js.gz - @echo "released" test/branch-deps.js: $(SOURCES) npx closure-make-deps \ diff --git a/deployment/release-s3.sh b/deployment/release-s3.sh index 68de6b43..e1937a37 100755 --- a/deployment/release-s3.sh +++ b/deployment/release-s3.sh @@ -14,6 +14,7 @@ make release aws s3 cp example.html s3://branch-builds/example.html aws s3 cp example.html s3://branch-cdn/example.html +aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.js s3://branch-cdn/branch-latest.js --cache-control "max-age=300" aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-$VERSION.min.js --cache-control "max-age=300" aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-latest.min.js --cache-control "max-age=300" @@ -21,7 +22,6 @@ echo -en "Invalidating cloudfront distribution...\n" aws configure set preview.cloudfront true aws cloudfront create-invalidation --distribution-id E10P37NG0GMER --paths /branch-latest.min.js - echo "Post-release sanity checks." read -p "Can you visit https://cdn.branch.io/branch-$VERSION.min.js ?" -n 1 -r echo diff --git a/examples/example.template.html b/examples/example.template.html index 34fe4c29..d00795ec 100644 --- a/examples/example.template.html +++ b/examples/example.template.html @@ -250,7 +250,8 @@