Repository navigation
fix(tooling): adding a new workflow to uprade the SDK version every W… #754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Whenever the fetched version differs from Useful? React with 👍 / 👎. |
||
|
|
||
| - 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 | ||
|
Comment on lines
+43
to
+45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On every fresh scheduled runner, this block runs the store test before any topological workspace build. AGENTS.md reference: AGENTS.md:L84-L85 Useful? React with 👍 / 👎. |
||
|
|
||
| - name: Create pull request | ||
| uses: peter-evans/create-pull-request@v7 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For a PR opened with the repository Useful? React with 👍 / 👎. |
||
| 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 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whenever the
nexttag advances, this command changes the store manifest and lockfile, but the generated branch never updates the exact SDK versions recorded inpackages/contact-center/store/ai-docs/store-spec.md:51,97,473orai-docs/CONTRACTS.md:29. Every automated PR therefore immediately leaves the repository's contract/spec documentation claiming the old SDK; update those claims as part of the automation (or remove the version snapshots).AGENTS.md reference: AGENTS.md:L68-L68
Useful? React with 👍 / 👎.