From 18409ec19f058f1cf99219a213f06f053ad4610e Mon Sep 17 00:00:00 2001 From: Priya Date: Tue, 20 Oct 2026 16:38:31 +0530 Subject: [PATCH 1/3] fix(tooling): adding a new workflow to uprade the SDK version every Wednesday --- .../workflows/update-contact-center-sdk.yml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/update-contact-center-sdk.yml diff --git a/.github/workflows/update-contact-center-sdk.yml b/.github/workflows/update-contact-center-sdk.yml new file mode 100644 index 000000000..b50798792 --- /dev/null +++ b/.github/workflows/update-contact-center-sdk.yml @@ -0,0 +1,59 @@ +name: Update Contact Center SDK + +on: + schedule: + - cron: "30 12 * * 3" + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + update-sdk: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Node + uses: actions/setup-node@v6 + with: + node-version-file: .nvmrc + registry-url: https://registry.npmjs.org + cache: yarn + + - name: Enable Corepack + run: corepack enable + + - name: Install dependencies + run: yarn install --immutable + + - name: Update SDK + id: sdk + run: | + version="$(npm view @webex/contact-center@next version)" + echo "version=$version" >> "$GITHUB_OUTPUT" + yarn workspace @webex/cc-store add "@webex/contact-center@$version" + yarn workspace samples-cc-react-app add "@webex/contact-center@$version" + + - name: Validate SDK update + run: | + yarn workspace @webex/cc-store test:unit + yarn workspace @webex/cc-store build + yarn workspace samples-cc-react-app build + + - name: Create pull request + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: automation/update-contact-center-sdk + delete-branch: true + title: "chore(cc): update contact center SDK to ${{ steps.sdk.outputs.version }}" + commit-message: "chore(cc): update contact center SDK to ${{ steps.sdk.outputs.version }}" + body: | + Automated weekly update of `@webex/contact-center` from the npm `next` dist-tag. + + SDK version: `${{ steps.sdk.outputs.version }}` + labels: dependencies,contact-center From 4d0c33eb4d9b843cddb9486d121514c598f502ef Mon Sep 17 00:00:00 2001 From: Priya Date: Wed, 28 Oct 2026 18:02:22 +0530 Subject: [PATCH 2/3] feat(tooling): review comments --- .../workflows/update-contact-center-sdk.yml | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-contact-center-sdk.yml b/.github/workflows/update-contact-center-sdk.yml index b50798792..50197f2f1 100644 --- a/.github/workflows/update-contact-center-sdk.yml +++ b/.github/workflows/update-contact-center-sdk.yml @@ -33,15 +33,32 @@ jobs: - name: Update SDK id: sdk run: | + current_version="$(node -p "require('./packages/contact-center/store/package.json').dependencies['@webex/contact-center']")" version="$(npm view @webex/contact-center@next version)" + webex_version="$(npm view webex@next version)" + webex_sdk_version="$(npm view "webex@$webex_version" dependencies.@webex/contact-center)" + + if [ "$webex_sdk_version" != "$version" ]; then + echo "::error::webex@$webex_version bundles @webex/contact-center@$webex_sdk_version, not @$version" + exit 1 + fi + echo "version=$version" >> "$GITHUB_OUTPUT" + echo "webex_version=$webex_version" >> "$GITHUB_OUTPUT" yarn workspace @webex/cc-store add "@webex/contact-center@$version" yarn workspace samples-cc-react-app add "@webex/contact-center@$version" + yarn workspace samples-cc-react-app add "webex@$webex_version" + + perl -pi -e "s/\\Q$current_version\\E/$version/g" \ + packages/contact-center/store/ai-docs/store-spec.md \ + ai-docs/CONTRACTS.md + + - name: Build workspace dependencies + run: yarn build:dev - name: Validate SDK update run: | yarn workspace @webex/cc-store test:unit - yarn workspace @webex/cc-store build yarn workspace samples-cc-react-app build - name: Create pull request @@ -50,10 +67,11 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} branch: automation/update-contact-center-sdk delete-branch: true - title: "chore(cc): update contact center SDK to ${{ steps.sdk.outputs.version }}" - commit-message: "chore(cc): update contact center SDK to ${{ steps.sdk.outputs.version }}" + title: "chore(cc): update SDK to ${{ steps.sdk.outputs.version }}" + commit-message: "chore(cc): update SDK to ${{ steps.sdk.outputs.version }}" body: | - Automated weekly update of `@webex/contact-center` from the npm `next` dist-tag. + Automated weekly update of the Contact Center SDK from the npm `next` dist-tag. - SDK version: `${{ steps.sdk.outputs.version }}` + - `@webex/contact-center`: `${{ steps.sdk.outputs.version }}` + - `webex`: `${{ steps.sdk.outputs.webex_version }}` labels: dependencies,contact-center From 605c243bdbfd82cd72355e64cef7e5d50c559d2c Mon Sep 17 00:00:00 2001 From: Priya Date: Tue, 3 Nov 2026 14:40:55 +0530 Subject: [PATCH 3/3] feat(tooling): review comments --- .../workflows/update-contact-center-sdk.yml | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-contact-center-sdk.yml b/.github/workflows/update-contact-center-sdk.yml index 50197f2f1..52f818135 100644 --- a/.github/workflows/update-contact-center-sdk.yml +++ b/.github/workflows/update-contact-center-sdk.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + with: + persist-credentials: false - name: Setup Node uses: actions/setup-node@v6 @@ -64,14 +66,58 @@ jobs: - name: Create pull request uses: peter-evans/create-pull-request@v7 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.AUTOMATION_ACCOUNT_TOKEN }} branch: automation/update-contact-center-sdk delete-branch: true title: "chore(cc): update SDK to ${{ steps.sdk.outputs.version }}" commit-message: "chore(cc): update SDK to ${{ steps.sdk.outputs.version }}" body: | - Automated weekly update of the Contact Center SDK from the npm `next` dist-tag. + # COMPLETES N/A (automated weekly dependency update, no linked issue) + + ## This pull request addresses + + Keeping `@webex/contact-center` in sync with the latest `next` pre-release so the widgets keep building against a current, compatible SDK contract. + + ## by making the following changes + + Automated weekly update of the Contact Center SDK from the npm `next` dist-tag: - `@webex/contact-center`: `${{ steps.sdk.outputs.version }}` - `webex`: `${{ steps.sdk.outputs.webex_version }}` + + ### Change Type + + - [ ] Bug fix (non-breaking change which fixes an issue) + - [ ] New feature (non-breaking change which adds functionality) + - [ ] Breaking change (fix or feature that would cause existing functionality to change) + - [ ] Documentation update + - [x] Tooling change + - [ ] Internal code refactor + + ## The following scenarios were tested + + - [ ] The testing is done with the amplify link + - `yarn workspace @webex/cc-store test:unit` and `yarn workspace samples-cc-react-app build` both passed in this workflow run before the PR was opened. + + ## The GAI Coding Policy And Copyright Annotation Best Practices ## + + - [x] GAI was not used (or, no additional notation is required) + - [ ] Code was generated entirely by GAI + - [ ] GAI was used to create a draft that was subsequently customized or modified + - [ ] Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code) + - [ ] Tool used for AI assistance (GitHub Copilot / Other - specify) + - [ ] Github Copilot + - [ ] Other - Please Specify + - [x] This PR is related to + - [ ] Feature + - [ ] Defect fix + - [ ] Tech Debt + - [x] Automation + + ### Checklist before merging + + - [x] I have not skipped any automated checks + - [x] All existing and new tests passed + - [ ] I have updated the testing document + - [ ] I have tested the functionality with amplify link labels: dependencies,contact-center