Skip to content

Commit

Permalink
chore(release): pull hotfix-release/3.50.0-SDK-2663 into main (#1922)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Nov 18, 2024
2 parents 28f5f2d + 021bb1c commit dd56163
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-sanity-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ permissions:

env:
NODE_OPTIONS: '--no-warnings'
CACHE_CONTROL: "\"max-age=3600\""

jobs:
deploy:
Expand Down Expand Up @@ -134,7 +135,7 @@ jobs:
- name: Sync files to S3
run: |
aws s3 cp packages/sanity-suite/dist/ s3://${{ env.AWS_S3_BUCKET_NAME }}/sanity-suite${{ env.SUITE_CDN_PATH }} --recursive --cache-control max-age=3600
aws s3 cp packages/sanity-suite/dist/ s3://${{ env.AWS_S3_BUCKET_NAME }}/sanity-suite${{ env.SUITE_CDN_PATH }} --recursive --cache-control ${{ env.CACHE_CONTROL }}
- name: Create Cloudfront invalidation
run: |
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ permissions:

env:
NODE_OPTIONS: "--no-warnings"
CACHE_MAX_AGE: 3600
CACHE_CONTROL: "\"no-store\""

jobs:
deploy:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Sync Adobe Analytics assets to S3
if: ${{ inputs.environment == 'production' }}
run: |
aws s3 cp assets/integrations/AdobeAnalytics/ s3://${{ secrets.AWS_S3_BUCKET_NAME }}/adobe-analytics-js --recursive --cache-control max-age=${{ env.CACHE_MAX_AGE }}
aws s3 cp assets/integrations/AdobeAnalytics/ s3://${{ secrets.AWS_S3_BUCKET_NAME }}/adobe-analytics-js --recursive --cache-control ${{ env.CACHE_CONTROL }}
- name: Create Cloudfront invalidation
if: ${{ inputs.environment == 'production' }}
Expand All @@ -129,7 +129,7 @@ jobs:
integration_sdks_path_prefix="packages/analytics-js-integrations/dist/cdn"
plugins_path_prefix="packages/analytics-js-plugins/dist/cdn"
s3_path_prefix="s3://${{ secrets.AWS_S3_BUCKET_NAME }}/${{ inputs.s3_dir_path }}"
copy_args="--recursive --cache-control max-age=${{ env.CACHE_MAX_AGE }}"
copy_args="--recursive --cache-control ${{ env.CACHE_CONTROL }}"
integration_sdks_zip_file="all_integration_sdks.tar.gz"
plugins_zip_file="all_plugins.tar.gz"
Expand Down Expand Up @@ -168,9 +168,9 @@ jobs:
./scripts/list-sdk-components.sh ${{ secrets.AWS_S3_BUCKET_NAME }} ${{ inputs.s3_dir_path }}/modern/plugins $plugins_html_file $plugins_path_prefix/modern/plugins "Plugins" $plugins_zip_file
# Copy the HTML files to S3
aws s3 cp $integration_sdks_path_prefix/legacy/js-integrations/$integration_sdks_html_file $s3_path_prefix/legacy/js-integrations/$integration_sdks_html_file --cache-control max-age=${{ env.CACHE_MAX_AGE }}
aws s3 cp $integration_sdks_path_prefix/modern/js-integrations/$integration_sdks_html_file $s3_path_prefix/modern/js-integrations/$integration_sdks_html_file --cache-control max-age=${{ env.CACHE_MAX_AGE }}
aws s3 cp $plugins_path_prefix/modern/plugins/$plugins_html_file $s3_path_prefix/modern/plugins/$plugins_html_file --cache-control max-age=${{ env.CACHE_MAX_AGE }}
aws s3 cp $integration_sdks_path_prefix/legacy/js-integrations/$integration_sdks_html_file $s3_path_prefix/legacy/js-integrations/$integration_sdks_html_file --cache-control ${{ env.CACHE_CONTROL }}
aws s3 cp $integration_sdks_path_prefix/modern/js-integrations/$integration_sdks_html_file $s3_path_prefix/modern/js-integrations/$integration_sdks_html_file --cache-control ${{ env.CACHE_CONTROL }}
aws s3 cp $plugins_path_prefix/modern/plugins/$plugins_html_file $s3_path_prefix/modern/plugins/$plugins_html_file --cache-control ${{ env.CACHE_CONTROL }}
- name: Create Cloudfront invalidation
run: |
Expand All @@ -183,7 +183,7 @@ jobs:
integration_sdks_path_prefix="packages/analytics-js-integrations/dist/cdn"
plugins_path_prefix="packages/analytics-js-plugins/dist/cdn"
s3_path_prefix="s3://${{ secrets.AWS_S3_BUCKET_NAME }}/${{ env.CURRENT_VERSION_VALUE }}"
copy_args="--recursive --cache-control max-age=${{ env.CACHE_MAX_AGE }}"
copy_args="--recursive --cache-control ${{ env.CACHE_CONTROL }}"
aws s3 cp $core_sdk_path_prefix/legacy/iife/ $s3_path_prefix/legacy/ $copy_args
aws s3 cp $integration_sdks_path_prefix/legacy/js-integrations/ $s3_path_prefix/legacy/js-integrations/ $copy_args
Expand All @@ -205,7 +205,7 @@ jobs:
integration_sdks_path_prefix="packages/analytics-js-integrations/dist/cdn"
plugins_path_prefix="packages/analytics-js-plugins/dist/cdn"
s3_path_prefix="s3://${{ secrets.AWS_S3_BUCKET_NAME }}/latest"
copy_args="--recursive --cache-control max-age=${{ env.CACHE_MAX_AGE }}"
copy_args="--recursive --cache-control ${{ env.CACHE_CONTROL }}"
aws s3 cp $core_sdk_path_prefix/legacy/iife/ $s3_path_prefix/legacy/ $copy_args
aws s3 cp $integration_sdks_path_prefix/legacy/js-integrations/ $s3_path_prefix/legacy/js-integrations/ $copy_args
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
core_sdk_path_prefix="packages/analytics-v1.1/dist/cdn"
integration_sdks_path_prefix="packages/analytics-js-integrations/dist/cdn"
s3_path_prefix="s3://${{ secrets.AWS_S3_BUCKET_NAME }}/${{ inputs.s3_dir_path_legacy }}"
copy_args="--recursive --cache-control max-age=${{ env.CACHE_MAX_AGE }}"
copy_args="--recursive --cache-control ${{ env.CACHE_CONTROL }}"
aws s3 cp $core_sdk_path_prefix/legacy/ $s3_path_prefix/ $copy_args
aws s3 cp $integration_sdks_path_prefix/legacy/js-integrations/ $s3_path_prefix/js-integrations/ $copy_args
Expand All @@ -286,7 +286,7 @@ jobs:
core_sdk_path_prefix="packages/analytics-v1.1/dist/cdn"
integration_sdks_path_prefix="packages/analytics-js-integrations/dist/cdn"
s3_path_prefix="s3://${{ secrets.AWS_S3_BUCKET_NAME }}/${{ env.CURRENT_VERSION_V1_VALUE }}"
copy_args="--recursive --cache-control max-age=${{ env.CACHE_MAX_AGE }}"
copy_args="--recursive --cache-control ${{ env.CACHE_CONTROL }}"
aws s3 cp $core_sdk_path_prefix/legacy/ $s3_path_prefix/ $copy_args
aws s3 cp $integration_sdks_path_prefix/legacy/js-integrations/ $s3_path_prefix/js-integrations/ $copy_args
Expand All @@ -305,7 +305,7 @@ jobs:
core_sdk_path_prefix="packages/analytics-v1.1/dist/cdn"
integration_sdks_path_prefix="packages/analytics-js-integrations/dist/cdn"
s3_path_prefix="s3://${{ secrets.AWS_S3_BUCKET_NAME }}/latest"
copy_args="--recursive --cache-control max-age=${{ env.CACHE_MAX_AGE }}"
copy_args="--recursive --cache-control ${{ env.CACHE_CONTROL }}"
aws s3 cp $core_sdk_path_prefix/legacy/ $s3_path_prefix/ $copy_args
aws s3 cp $integration_sdks_path_prefix/legacy/js-integrations/ $s3_path_prefix/js-integrations/ $copy_args
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-monorepo",
"version": "3.49.0",
"version": "3.50.0",
"private": true,
"description": "Monorepo for RudderStack Analytics JS SDK",
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sonar.qualitygate.wait=false
sonar.projectKey=rudderlabs_rudder-sdk-js
sonar.organization=rudderlabs
sonar.projectName=rudder-sdk-js
sonar.projectVersion=3.49.0
sonar.projectVersion=3.50.0

# Meta-data for the project
sonar.links.scm=https://github.com/rudderlabs/rudder-sdk-js
Expand Down

0 comments on commit dd56163

Please sign in to comment.