Skip to content

Commit

Permalink
Merge branch 'main' into types-progress-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
andreancardona authored Jan 2, 2024
2 parents bf6ec97 + 3f70e1d commit df38e8c
Show file tree
Hide file tree
Showing 182 changed files with 14,722 additions and 11,296 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Run yarn dedupe
Expand All @@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand All @@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand All @@ -58,7 +58,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- uses: actions/cache@v3
Expand All @@ -85,7 +85,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- uses: actions/cache@v3
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- uses: actions/cache@v3
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
6 changes: 3 additions & 3 deletions .github/workflows/deploy-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
on:
workflow_dispatch:
workflow_run:
workflows: [Release]
workflows: [Promote]
types:
- completed

Expand All @@ -21,7 +21,7 @@ jobs:
repository: carbon-design-system/design-language-website
ref: master
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
repository: carbon-design-system/gatsby-theme-carbon
ref: main
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-react-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/checkout@main
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand All @@ -42,7 +42,7 @@ jobs:
cd packages/react
yarn storybook:build
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Fix permissions
run: |
chmod -v -R +rX "_site/" | while read line; do
Expand All @@ -63,4 +63,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@main
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
any-of-issue-labels:
"status: waiting for author's response 💬,status: needs more info 🤷‍♀️"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-generated-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/v10-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Run yarn dedupe
Expand All @@ -29,7 +29,7 @@ jobs:
with:
ref: v10
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand All @@ -44,7 +44,7 @@ jobs:
with:
ref: v10
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand All @@ -61,7 +61,7 @@ jobs:
with:
ref: v10
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- uses: actions/cache@v3
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
with:
ref: v10
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/v10-deploy-react-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/v10-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
fetch-depth: '0'
- name: Use Node.js 20.x
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 #v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 #v4.0.1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/got-npm-13.0.0-dfca67e32e-35ac9fe37d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/is2-npm-2.0.9-69ddc5474e-ac229ce8fc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion actions/promote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"execa": "^5.1.1",
"fast-glob": "^3.2.11",
"fs-extra": "^11.0.0",
"got": "^13.0.0"
"got": "^14.0.0"
}
}
2 changes: 1 addition & 1 deletion actions/wait-for-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
],
"dependencies": {
"@actions/core": "^1.10.0",
"got": "^13.0.0"
"got": "^14.0.0"
}
}
51 changes: 25 additions & 26 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,33 +161,9 @@ git push upstream v11.2.0

- [ ] Verify that this triggers a run of the
[Release Workflow](https://github.com/carbon-design-system/carbon/actions/workflows/release.yml)
- [ ] Review and approve the Pull Request generated from this action in
[gatsby-theme-carbon](https://github.com/carbon-design-system/gatsby-theme-carbon/pulls)
to verify no breaking changes have occurred in this release. If the PR
from the previous release was not merged, the existing PR will be updated.

**Friday**

After the PR to the Carbon Gatsby theme is merged it will trigger an automated
release of the theme. To then update the Carbon website to the latest version of
Carbon and gatsby-theme-carbon you will need to:

- [ ] Check that the
[chore(release): update carbon deps](https://github.com/carbon-design-system/gatsby-theme-carbon/pulls)
PR has been merged in the gatsby-theme-carbon repo.
- [ ] Check that
[gatsby-theme-carbon](https://github.com/carbon-design-system/gatsby-theme-carbon)
has been released and is on the
[latest version](https://github.com/carbon-design-system/gatsby-theme-carbon/blob/main/packages/gatsby-theme-carbon/package.json)
of Carbon
- [ ] Run the
[Update Carbon and gatsby-theme-carbon deps workflow](https://github.com/carbon-design-system/carbon-website/actions/workflows/update-carbon-gatsby-deps.yml)
to automatically open a PR in the Carbon website to update to latest
Carbon and gatsby-theme-carbon versions.
- [ ] Review and approve the
[pull request](https://github.com/carbon-design-system/carbon-website/pulls)
generate by the workflow.

The packages that have been published will be switched to latest on the first
Friday of a sprint. To make the switch, you will need to:

Expand All @@ -206,10 +182,33 @@ Friday of a sprint. To make the switch, you will need to:

- [ ] Post the release announcement in slack
- [ ] #carbon-announcements
- [ ] #carbon-components
- [ ] #carbon-design-system
- [ ] #carbon-react

### Update gatsby-theme-carbon and carbon-website

After the promotion workflow is completed this will trigger the
`deploy-packages` workflow to update both `design-language-website` and
`gatsby-theme-carbon` to the latest version of the Carbon packages.

- [ ] Review, approve and merge the Pull Request generated from this action in
[gatsby-theme-carbon](https://github.com/carbon-design-system/gatsby-theme-carbon/pulls)
to verify no breaking changes have occurred in this release. If the PR
from the previous release was not merged, the existing PR will be updated.
This should trigger an automatic release of `gatsby-theme-carbon`.
- [ ] Check that
[gatsby-theme-carbon](https://github.com/carbon-design-system/gatsby-theme-carbon)
has been released and is on the
[latest version](https://github.com/carbon-design-system/gatsby-theme-carbon/blob/main/packages/gatsby-theme-carbon/package.json)
of Carbon
- [ ] Run the
[Update Carbon and gatsby-theme-carbon deps workflow](https://github.com/carbon-design-system/carbon-website/actions/workflows/update-carbon-gatsby-deps.yml)
to automatically open a PR in the Carbon website to update to latest
Carbon and gatsby-theme-carbon versions.
- [ ] Review and approve the
[pull request](https://github.com/carbon-design-system/carbon-website/pulls)
generate by the workflow.

<details>
<summary>Click to view slack announcement template</summary>

Expand Down Expand Up @@ -334,7 +333,7 @@ cases, follow these steps below to ensure a proper patch release:
- [ ] for each package (replace <kbd>carbon-components-react</kbd> with the
package name):
```bash
npm dist tag add [email protected] latest
npm dist-tag add [email protected] latest
```
- [ ] Verify the packages have been promoted to latest on
[NPM](https://www.npmjs.com)
Expand Down
4 changes: 3 additions & 1 deletion e2e/components/FluidSearch/FluidSearch-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ test.describe('FluidSearch @avt', () => {
},
});
const search = page.getByRole('searchbox');
const clearButton = page.getByRole('button');
const clearButton = page.getByRole('button', {
name: 'Clear search input',
});
await expect(search).toBeVisible();
await expect(clearButton).not.toBeVisible();

Expand Down
4 changes: 3 additions & 1 deletion e2e/components/Search/Search-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ test.describe('Search @avt', () => {
},
});
const search = page.getByRole('searchbox');
const clearButton = page.getByRole('button');
const clearButton = page.getByRole('button', {
name: 'Clear search input',
});
await expect(search).toBeVisible();
await expect(clearButton).not.toBeVisible();

Expand Down
20 changes: 20 additions & 0 deletions e2e/components/UIShell/UIShell-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,24 @@ test.describe('UIShell @avt', () => {
// focus should then be within the main content of the page
await expect(page.getByRole('link', { name: 'Carbon' })).toBeFocused();
});

test('@avt-keyboard-nav header w/ navigation actions and siddenav', async ({
page,
}) => {
await visitStory(page, {
component: 'UIShell',
id: 'components-ui-shell-header--header-w-navigation-actions-and-side-nav',
globals: {
theme: 'white',
},
});

await page.getByRole('button', { name: 'Category title' }).first().focus();
await expect(
page.getByRole('button', { name: 'Category title' }).first()
).toBeFocused();
await page.keyboard.press('Enter');
await page.keyboard.press('Tab');
await expect(page.getByRole('link', { name: 'Link 5' })).toBeFocused();
});
});
2 changes: 1 addition & 1 deletion e2e/icons-react/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ Array [
"IncompleteWarning",
"IncreaseLevel",
"Industry",
"Infinity",
"InfinitySymbol",
"Information",
"InformationDisabled",
"InformationFilled",
Expand Down
8 changes: 4 additions & 4 deletions e2e/icons-vue/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3967,10 +3967,10 @@ Array [
"Industry20",
"Industry24",
"Industry32",
"Infinity16",
"Infinity20",
"Infinity24",
"Infinity32",
"InfinitySymbol16",
"InfinitySymbol20",
"InfinitySymbol24",
"InfinitySymbol32",
"Information16",
"Information20",
"Information24",
Expand Down
Loading

0 comments on commit df38e8c

Please sign in to comment.