From 5a708671407e7478c015010067837e041ca9b241 Mon Sep 17 00:00:00 2001 From: Hugh Date: Wed, 31 Jul 2024 19:07:29 +0100 Subject: [PATCH] deploy staging workflow to bundle branch --- .github/workflows/deploy-staging.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 4ba83ff526..25f3f0c952 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -127,6 +127,21 @@ jobs: NODE_ENV=staging npm run bundle:staging + - name: Checkout js-bundle branch + run: | + git fetch origin js-bundle:js-bundle + git checkout js-bundle + + - name: Copy built bundle to js-bundle branch + run: | + cp packages/procaptcha-bundle/dist/bundle/* . + git add -A + git commit -m 'Deploy JS bundle from mstagingain' + + - name: Push the bundle to js-bundle branch + run: | + git push origin js-bundle --force + - name: Build docker js_server run: | set -euxo pipefail # stop on errors, print commands, fail on pipe fails @@ -198,7 +213,6 @@ jobs: echo "Navigating back to project root..." cd ../.. - - name: Docker js_server release id: docker_js_server_release run: |