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: |