Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ contributing environment. Please take a look at our
Before contributing to Carbon, you should make sure you have the following tools
installed:

- [Node.js](https://nodejs.org/en/download/) v18 or above here or follow their
installation through a package manager
[here](https://nodejs.org/en/download/package-manager/))
- [Node.js](https://nodejs.org/en/download/)
- If you're on macOS, we recommend using
[`nvm`](https://github.com/nvm-sh/nvm) to help manage different versions of
Node.js [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md) as your
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ concurrency:
jobs:
automerge:
if: github.repository == 'carbon-design-system/carbon-labs'
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Merge to main
uses: devmasx/[email protected]
with:
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js 18.x
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
- name: Run yarn dedupe
run: yarn dedupe --check

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand All @@ -44,11 +44,11 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand All @@ -62,11 +62,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand All @@ -76,11 +76,11 @@ jobs:
license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand All @@ -90,11 +90,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/create-release-tag-and-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 60
if: github.event.inputs.create-pr == 'true'
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'

Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
token: ${{ secrets.GITHUB_TOKEN }} # https://github.com/lerna/lerna/issues/1957
Expand All @@ -85,20 +85,20 @@ jobs:
timeout-minutes: 60
needs: create-release-tag
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org
cache: 'yarn'
- name: Install dependencies
run: yarn install

# Creates the release with the generated changelog
- uses: ncipollo/release-action@v1
- uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
with:
tag: '${{ github.event.inputs.tag }}'
name: '${{ github.event.inputs.tag }}'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ on:
pull_request_target:
types: [opened, closed, synchronize]
merge_group:
types: [ checks_requested ]
types: [checks_requested]

jobs:
DCOAssistant:
if: github.repository == 'carbon-design-system/carbon-labs'
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: 'DCO Assistant'
if:
(github.event.comment.body == 'recheck' || github.event.comment.body
== 'I have read the DCO Document and I hereby sign the DCO') ||
github.event_name == 'pull_request_target'
uses: cla-assistant/github-action@v2.1.3-beta
uses: cla-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-canary-cdn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
if: github.repository == 'carbon-design-system/carbon-labs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
- uses: fkirc/[email protected]
with:
github_token: ${{ github.token }}
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-cdn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
github.repository == 'carbon-design-system/carbon-labs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
github.repository == 'carbon-design-system/carbon-labs'
timeout-minutes: 60
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
- run: |
git config user.name carbon-bot
git config user.email [email protected]
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand All @@ -39,4 +39,4 @@ jobs:
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
- name: Publish canary release of packages
run: |
yarn lerna publish --canary --preid canary --dist-tag canary --yes
yarn lerna publish --canary --preid canary --dist-tag canary --yes
8 changes: 4 additions & 4 deletions .github/workflows/release-minor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
contents: write
timeout-minutes: 60
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
token: ${{ secrets.MERGE_ACTION }}
- run: |
git config user.name carbon-bot
git config user.email [email protected]
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ jobs:
env:
GH_TOKEN: ${{ secrets.MERGE_ACTION }}
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
- run: |
git config --global user.email ${{ secrets.CARBON_BOT_EMAIL }}
git config --global user.name ${{ secrets.CARBON_BOT_NAME }}
- name: Use Node.js 18.x
uses: actions/setup-node@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '18.x'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/storybook-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
if: github.repository == 'carbon-design-system/carbon-labs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '20.x'
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24.11.0