Skip to content

Commit 60f2027

Browse files
authored
chore(release): pulling release/3.1.0 into main (#1661)
2 parents 2d804a5 + ac550b3 commit 60f2027

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+369
-446
lines changed

.github/workflows/deploy-npm.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ env:
1717
jobs:
1818
deploy-tag:
1919
name: Deploy to NPM
20-
runs-on: ubuntu-latest # this runner should not be changed due to NPM publish restrictions
20+
# As we publish the NPM package with provenance, we need to only use the GitHub hosted runners
21+
runs-on: ubuntu-latest
2122
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main') || github.event.pull_request.merged == true
2223

2324
steps:
@@ -71,7 +72,7 @@ jobs:
7172
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
7273
npx nx release publish --base=${{ env.last_monorepo_version }} --head=${{ env.current_monorepo_version }}
7374
74-
- name: Send message to Slack channel for v3
75+
- name: Send message to Slack channel
7576
id: slack
7677
uses: slackapi/[email protected]
7778
env:

.github/workflows/deploy-prod.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: |
9696
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/adobe-analytics-js*"
9797
98-
- name: Sync files to S3 v3 folder
98+
- name: Sync files to S3
9999
run: |
100100
aws s3 cp packages/analytics-js/dist/cdn/legacy/iife/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/v3/legacy/ --recursive --cache-control max-age=3600
101101
aws s3 cp packages/analytics-js/dist/cdn/modern/iife/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/v3/modern/ --recursive --cache-control max-age=3600
@@ -107,7 +107,7 @@ jobs:
107107
run: |
108108
AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/v3/*"
109109
110-
- name: Sync files to S3 v3 versioned folder
110+
- name: Sync files to S3 versioned directory
111111
run: |
112112
aws s3 cp packages/analytics-js/dist/cdn/legacy/iife/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/${{ env.CURRENT_VERSION_VALUE }}/legacy/ --recursive --cache-control max-age=3600
113113
aws s3 cp packages/analytics-js/dist/cdn/modern/iife/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/${{ env.CURRENT_VERSION_VALUE }}/modern/ --recursive --cache-control max-age=3600
@@ -119,7 +119,7 @@ jobs:
119119
run: |
120120
AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/${{ env.CURRENT_VERSION_VALUE }}/*"
121121
122-
# TODO: The '/latest' folder is unused. Might be removed in future.
122+
# TODO: The '/latest' directory is unused. Might be removed in future.
123123
- name: Sync files to S3 latest
124124
run: |
125125
aws s3 cp packages/analytics-js-integrations/dist/cdn/modern/js-integrations/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/latest/modern/js-integrations/ --recursive --cache-control max-age=3600
@@ -134,7 +134,7 @@ jobs:
134134
run: |
135135
AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/latest*"
136136
137-
- name: Send message to Slack channel v3
137+
- name: Send message to Slack channel
138138
id: slack
139139
uses: slackapi/[email protected]
140140
env:
@@ -169,7 +169,7 @@ jobs:
169169
170170
# Below steps are for v1.1 SDK (legacy)
171171

172-
- name: Sync files to S3 v1.1 folder
172+
- name: Sync files to S3 v1.1 directory
173173
run: |
174174
aws s3 cp packages/analytics-v1.1/dist/cdn/legacy/rudder-analytics.min.js s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/v1.1/rudder-analytics.min.js --cache-control max-age=3600
175175
aws s3 cp packages/analytics-v1.1/dist/cdn/legacy/rudder-analytics.min.js.map s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/v1.1/rudder-analytics.min.js.map --cache-control max-age=3600
@@ -184,7 +184,7 @@ jobs:
184184
run: |
185185
AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/v1.1*"
186186
187-
- name: Sync files to S3 v1.1 versioned folder
187+
- name: Sync files to S3 v1.1 versioned directory
188188
run: |
189189
aws s3 cp packages/analytics-v1.1/dist/cdn/legacy/rudder-analytics.min.js s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/${{ env.CURRENT_VERSION_V1_VALUE }}/rudder-analytics.min.js --cache-control max-age=3600
190190
aws s3 cp packages/analytics-v1.1/dist/cdn/legacy/rudder-analytics.min.js.map s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/${{ env.CURRENT_VERSION_V1_VALUE }}/rudder-analytics.min.js.map --cache-control max-age=3600

.github/workflows/deploy-staging.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,20 @@ jobs:
6969
npm run build:browser
7070
npm run build:browser:modern
7171
72-
- name: Sync files to S3 v3 staging folder
72+
- name: Sync files to S3 staging directory
7373
run: |
7474
aws s3 cp packages/analytics-js/dist/cdn/legacy/iife/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/staging/latest/v3/legacy/ --recursive --cache-control max-age=3600
7575
aws s3 cp packages/analytics-js/dist/cdn/modern/iife/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/staging/latest/v3/modern/ --recursive --cache-control max-age=3600
7676
aws s3 cp packages/analytics-js-plugins/dist/cdn/modern/plugins/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/staging/latest/v3/modern/plugins/ --recursive --cache-control max-age=3600
7777
aws s3 cp packages/analytics-js-integrations/dist/cdn/legacy/js-integrations/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/staging/latest/v3/legacy/js-integrations/ --recursive --cache-control max-age=3600
7878
aws s3 cp packages/analytics-js-integrations/dist/cdn/modern/js-integrations/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/staging/latest/v3/modern/js-integrations/ --recursive --cache-control max-age=3600
7979
80-
- name: Create Cloudfront invalidation for v3
80+
- name: Create Cloudfront invalidation
8181
run: |
8282
AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/staging/latest/v3*"
8383
8484
# Below steps are for v1.1 SDK (legacy)
85-
- name: Sync files to S3 v1.1 staging folder
85+
- name: Sync files to S3 v1.1 staging directory
8686
run: |
8787
aws s3 cp packages/analytics-v1.1/dist/cdn/legacy/rudder-analytics.min.js s3://${{ secrets.AWS_STAGING_S3_BUCKET_NAME }}/staging/latest/v1.1/rudder-analytics.min.js --cache-control max-age=3600
8888
aws s3 cp packages/analytics-v1.1/dist/cdn/legacy/rudder-analytics.min.js.map s3://${{ secrets.AWS_STAGING_S3_BUCKET_NAME }}/staging/latest/v1.1/rudder-analytics.min.js.map --cache-control max-age=3600

.github/workflows/publish-new-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
release:
1515
name: Publish new release
16-
runs-on: [self-hosted, Linux, X64]
16+
runs-on: ubuntu-latest
1717
# only merged pull requests must trigger this job
1818
if: (startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true
1919

.github/workflows/security-code-quality-and-bundle-size-checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cache: 'npm'
2424

2525
- name: Execute bundle size checks
26-
uses: rudderlabs/github-action-check-size-limit@v2.9.0
26+
uses: rudderlabs/github-action-check-size-limit@v2.10.0
2727
env:
2828
HUSKY: 0
2929
with:

CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
* @saikumarrs @MoumitaM
1+
* @rudderlabs/js-sdk
22
/packages/analytics-js-integrations/ @ItsSudip @shrouti1507 @sandeepdsvs @koladilip @mihir-4116

migrations.json

-34
This file was deleted.

0 commit comments

Comments
 (0)