Skip to content

Commit 0a98797

Browse files
authored
Merge branch 'main' into checklistFigma
2 parents b05075a + a2a88be commit 0a98797

Some content is hidden

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

41 files changed

+660
-189
lines changed

.github/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ body:
6868
attributes:
6969
label: Suggested Severity
7070
description:
71-
'Read more to understand our [severity levels](https://github.com/carbon-design-system/carbon/blob/main/docs/guides/support.md#severity)'
71+
'Read more to understand our [severity
72+
levels](https://github.com/carbon-design-system/carbon/blob/main/docs/guides/support.md#severity)'
7273
options:
7374
- 'Severity 1 = The design is broken in a critical way that blocks users
7475
from completing tasks or damages the brand. Affects major

.github/ISSUE_TEMPLATE/question.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@ body:
1010
value: '## Question 🤔'
1111
- type: markdown
1212
attributes:
13-
value: "Hi there! 👋 Hope everything is going okay using projects from @carbon/ibm-products. It looks like you might have a question about our work, so we wanted to share a couple resources that you could use if you haven't tried them yet 🙂."
13+
value:
14+
"Hi there! 👋 Hope everything is going okay using projects from
15+
@carbon/ibm-products. It looks like you might have a question about our
16+
work, so we wanted to share a couple resources that you could use if you
17+
haven't tried them yet 🙂."
1418
- type: markdown
1519
attributes:
16-
value: "If you're an IBMer, we have a couple of Slack channels available across all IBM Workspaces:"
20+
value:
21+
"If you're an IBMer, we have a couple of Slack channels available across
22+
all IBM Workspaces:"
1723
- type: markdown
1824
attributes:
19-
value: "- #ibmproducts-pal for design questions around the @carbon/ibm-products components
20-
- #ibmproducts-pal-dev for development questions around the @carbon/ibm-products components"
25+
value: '- `#carbon-design-system` for design questions'
2126
- type: markdown
2227
attributes:
23-
value: "If these resources don't work out, help us out by filling out a couple of details below!"
28+
value: '- `#carbon-for-ibmproducts` for development questions'
29+
- type: markdown
30+
attributes:
31+
value:
32+
"If these resources don't work out, help us out by filling out a couple
33+
of details below!"
2434
- type: textarea
2535
id: summary
2636
attributes:
@@ -49,5 +59,5 @@ body:
4959
required: true
5060
- label:
5161
I checked the [current
52-
issues](https://github.com/carbon-design-system/ibm-products/issues) for
53-
duplicate issues
62+
issues](https://github.com/carbon-design-system/ibm-products/issues)
63+
for duplicate issues

.github/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ ignore:
4545
- 'Nav/'
4646
- 'StatusIndicator/'
4747
- 'UserProfileImage/'
48-
- "**/StepFlow/story-assets/**/*"
48+
- '**/StepFlow/story-assets/**/*'

.github/labeler.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@
8484
'component: Interstitial screen':
8585
- '/(Interstitial screen)/i'
8686
'component: modal':
87-
- '/(AboutModal|about modal|ExportModal|export modal|ImportModal|import modal|RemoveModal|remove modal)/i'
87+
- '/(AboutModal|about modal|ExportModal|export modal|ImportModal|import
88+
modal|RemoveModal|remove modal)/i'
8889
'component: NotificationsPanel':
89-
- '/(NotificationsPanel|NotificationPanel|Notifications Panel|Notification Panel)/i'
90+
- '/(NotificationsPanel|NotificationPanel|Notifications Panel|Notification
91+
Panel)/i'
9092
'component: OptionsTile':
9193
- '/(OptionsTile|Options Tile)/i'
9294
'component: PageHeader':
@@ -110,7 +112,6 @@
110112
'component: WebTerminal':
111113
- '/(WebTerminal|Web Terminal)/i'
112114

113-
114115
# Package labels
115116
'package: styles':
116117
- '(@carbon/ibm-products-styles)'

.github/workflows/cancel-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: Cancel # Reduces overall build times by cancelling incomplete jobs
22
on:
33
workflow_run:
4-
workflows: ["CI"]
4+
workflows: ['CI']
55
types:
66
- requested
77

88
jobs:
99
cancel:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Cancel incomplete runs except the latest
13-
uses: styfle/cancel-workflow-action@bdaa46e4662006504ca6b0cfb7488010126dc98c # cspell:disable-line
14-
with:
15-
all_but_latest: true
16-
workflow_id: ${{ github.event.workflow.id }}
12+
- name: Cancel incomplete runs except the latest
13+
uses: styfle/cancel-workflow-action@bdaa46e4662006504ca6b0cfb7488010126dc98c # cspell:disable-line
14+
with:
15+
all_but_latest: true
16+
workflow_id: ${{ github.event.workflow.id }}

.github/workflows/ci.yml

Lines changed: 48 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,13 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
23-
- name: Setup Node.js
23+
- name: Use Node.js version from .nvmrc
2424
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2525
with:
26-
node-version: '20.19.5'
27-
cache: yarn
28-
- name: Cache dependencies
29-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # 4.3.0
30-
with:
31-
path: '**/node_modules'
32-
key: build-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
33-
- name: Install
34-
run: yarn
35-
26+
node-version-file: '.nvmrc'
27+
cache: 'yarn'
28+
- name: Install dependencies
29+
run: yarn install --immutable
3630
- name: CI build checks
3731
run: yarn ci-check:build
3832

@@ -41,18 +35,13 @@ jobs:
4135
steps:
4236
- name: Checkout
4337
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
44-
- name: Setup Node.js
38+
- name: Use Node.js version from .nvmrc
4539
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
4640
with:
47-
node-version: '20.x'
48-
cache: yarn
49-
- name: Cache dependencies
50-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # 4.3.0
51-
with:
52-
path: '**/node_modules'
53-
key: lint-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
54-
- name: Install
55-
run: yarn
41+
node-version-file: '.nvmrc'
42+
cache: 'yarn'
43+
- name: Install dependencies
44+
run: yarn install --immutable
5645
- name: Check formatting of project files
5746
run: yarn format:diff
5847

@@ -61,18 +50,13 @@ jobs:
6150
steps:
6251
- name: Checkout
6352
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
64-
- name: Setup Node.js
53+
- name: Use Node.js version from .nvmrc
6554
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
6655
with:
67-
node-version: '20.x'
68-
cache: yarn
69-
- name: Cache dependencies
70-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # 4.3.0
71-
with:
72-
path: '**/node_modules'
73-
key: lint-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
74-
- name: Install
75-
run: yarn
56+
node-version-file: '.nvmrc'
57+
cache: 'yarn'
58+
- name: Install dependencies
59+
run: yarn install --immutable
7660
- name: CI lint checks
7761
run: yarn ci-check:lint
7862

@@ -81,18 +65,13 @@ jobs:
8165
steps:
8266
- name: Checkout
8367
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
84-
- name: Setup Node.js
68+
- name: Use Node.js version from .nvmrc
8569
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
8670
with:
87-
node-version: '20.x'
88-
cache: yarn
89-
- name: Cache dependencies
90-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # 4.3.0
91-
with:
92-
path: '**/node_modules'
93-
key: spellcheck-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
94-
- name: Install
95-
run: yarn
71+
node-version-file: '.nvmrc'
72+
cache: 'yarn'
73+
- name: Install dependencies
74+
run: yarn install --immutable
9675
- name: CI spellcheck checks
9776
run: yarn ci-check:spellcheck
9877

@@ -101,18 +80,13 @@ jobs:
10180
steps:
10281
- name: Checkout
10382
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
104-
- name: Setup Node.js
83+
- name: Use Node.js version from .nvmrc
10584
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
10685
with:
107-
node-version: '20.x'
108-
cache: yarn
109-
- name: Cache dependencies
110-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # 4.3.0
111-
with:
112-
path: '**/node_modules'
113-
key: test-c4p-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
114-
- name: Install
115-
run: yarn
86+
node-version-file: '.nvmrc'
87+
cache: 'yarn'
88+
- name: Install dependencies
89+
run: yarn install --immutable
11690
- name: CI snapshot tests for c4p
11791
run: yarn ci-check:test:c4p:snapshot
11892
- name: CI tests for c4p
@@ -127,19 +101,13 @@ jobs:
127101
steps:
128102
- name: Checkout
129103
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
130-
- name: Setup Node.js
104+
- name: Use Node.js version from .nvmrc
131105
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
132106
with:
133-
node-version: '20.19.5'
134-
cache: yarn
135-
- name: Cache dependencies
136-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # 4.3.0
137-
with:
138-
path: '**/node_modules'
139-
key:
140-
test-c4p-wc-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
141-
- name: Install
142-
run: yarn
107+
node-version-file: '.nvmrc'
108+
cache: 'yarn'
109+
- name: Install dependencies
110+
run: yarn install --immutable
143111
- name: Install browsers
144112
working-directory: packages/ibm-products-web-components
145113
run: yarn playwright install --with-deps
@@ -162,13 +130,13 @@ jobs:
162130
- name: Checkout
163131
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
164132

165-
- name: Setup Node.js
133+
- name: Use Node.js version from .nvmrc
166134
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
167135
with:
168-
node-version: '20.19.5'
169-
cache: yarn
170-
- name: Install
171-
run: yarn
136+
node-version-file: '.nvmrc'
137+
cache: 'yarn'
138+
- name: Install dependencies
139+
run: yarn install --immutable
172140

173141
- name: Install browsers
174142
run: yarn playwright install --with-deps
@@ -214,16 +182,19 @@ jobs:
214182
merge-reports:
215183
# Merge reports after playwright-tests, even if some shards have failed
216184
if:
217-
${{ github.repository == 'carbon-design-system/ibm-products' && !cancelled() &&
218-
github.event.pull_request.draft == false }}
185+
${{ github.repository == 'carbon-design-system/ibm-products' &&
186+
!cancelled() && github.event.pull_request.draft == false }}
219187
needs: avt-runner
220188

221189
runs-on: ubuntu-latest
222190
steps:
223-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
224-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
191+
- name: Checkout
192+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
193+
- name: Use Node.js version from .nvmrc
194+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
225195
with:
226-
node-version: lts/*
196+
node-version-file: '.nvmrc'
197+
cache: 'yarn'
227198
- name: Install dependencies
228199
run: yarn
229200

@@ -254,13 +225,13 @@ jobs:
254225
steps:
255226
- name: Checkout
256227
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
257-
- name: Setup Node.js
228+
- name: Use Node.js version from .nvmrc
258229
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
259230
with:
260-
node-version: '20.19.5'
261-
cache: yarn
262-
- name: Install
263-
run: yarn
231+
node-version-file: '.nvmrc'
232+
cache: 'yarn'
233+
- name: Install dependencies
234+
run: yarn install --immutable
264235
- name: Install browsers
265236
run: yarn playwright install --with-deps
266237
- name: Build project

.github/workflows/code-connect.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
20-
- name: Setup Node.js
20+
- name: Use Node.js version from .nvmrc
2121
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2222
with:
23-
node-version: '20.19.5'
24-
cache: yarn
25-
- name: Cache dependencies
26-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # 4.3.0
27-
with:
28-
path: '**/node_modules'
29-
key: build-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
30-
- name: Install
31-
run: yarn
23+
node-version-file: .'nvmrc'
24+
cache: 'yarn'
25+
- name: Install dependencies
26+
run: yarn install --immutable
3227
- name: Run publish
3328
working-directory: packages/${{ matrix.package }}
3429
run: npx figma connect publish

.github/workflows/create-release-tag-and-pr.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ jobs:
6666
# Create a new branch off the release branch for the PR, we do this to ensure the release branch
6767
# is not affected
6868

69-
- name: Setup Node.js
69+
- name: Use Node.js version from .nvmrc
7070
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
7171
with:
72-
node-version: '20.x'
72+
node-version-file: .'nvmrc'
7373
cache: 'yarn'
7474

7575
- name: Install dependencies
76-
run: yarn install
76+
run: yarn install --immutable
7777

7878
- name: Create branch
7979
run: |
@@ -110,14 +110,13 @@ jobs:
110110
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
111111
with:
112112
fetch-depth: '0'
113-
- name: Setup Node.js
113+
- name: Use Node.js version from .nvmrc
114114
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
115115
with:
116-
node-version: '20.x'
117-
registry-url: https://registry.npmjs.org
116+
node-version-file: .'nvmrc'
118117
cache: 'yarn'
119118
- name: Install dependencies
120-
run: yarn install
119+
run: yarn install --immutable
121120

122121
# Generate the changelog with the local 'get-changelog.js' script and output to 'changelog.txt' file
123122
- name: Run changelog script

.github/workflows/deploy-latest.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,22 @@ jobs:
2121
fetch-depth: '0'
2222
ref: ${{ github.event.client_payload.branch }}
2323

24-
- name: Setup Node.js
24+
- name: Use Node.js version from .nvmrc
2525
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2626
with:
27-
node-version: '20.x'
28-
registry-url: https://registry.npmjs.org
27+
node-version-file: '.nvmrc'
2928
cache: 'yarn'
3029
- name: Install dependencies
31-
run: yarn install
30+
run: yarn install --immutable
3231
- name: Build storybook
3332
run: |
3433
yarn build
3534
yarn storybook-wc:build
3635
# Set authenticated Git remote
3736
- name: Set authenticated Git remote
38-
run: git remote set-url origin https://git:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
37+
run:
38+
git remote set-url origin https://git:${{
39+
secrets.GITHUB_TOKEN}}@github.com/${{ github.repository }}.git
3940
# Deploy to staging Github Pages using `gh-pages` package
4041
- name: Prepare latest directory
4142
run: |

0 commit comments

Comments
 (0)