Skip to content

Commit

Permalink
chore: onboard carbon-components and carbon-components-react (v11) to…
Browse files Browse the repository at this point in the history
… IBM Telemetry 🚀 (#15769)

* chore: onboard deprecated packages (v11) to IBM Telemetry 🚀

* fix: dedupe

* fix: update @carbon/react's @ibm/telemetry-js version

* ci: use actions/setup-node to cache dependencies

* ci: change hashFiles key for dependency caching

---------

Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
francinelucca and tay1orjones authored Feb 21, 2024
1 parent b738b35 commit 57012a7
Show file tree
Hide file tree
Showing 10 changed files with 863 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
path: |
node_modules
*/**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'packages/**/yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Build project
Expand All @@ -95,7 +95,7 @@ jobs:
path: |
node_modules
*/**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'packages/**/yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd #v3.0.0
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
path: |
node_modules
*/**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'packages/**/yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Install browsers
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
path: |
node_modules
*/**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'packages/**/yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Install browsers
Expand Down Expand Up @@ -238,4 +238,4 @@ jobs:
steps:
- name: Check AVT Runner job status
if: ${{ needs.avt-runner.result != 'success' }}
run: exit 1
run: exit 1
Binary file not shown.
9 changes: 9 additions & 0 deletions packages/carbon-components-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,12 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md)! 👀
## 📝 License

Licensed under the [Apache 2.0 License](/LICENSE).

## <picture><source height="20" width="20" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-dark.svg"><source height="20" width="20" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"><img height="20" width="20" alt="IBM Telemetry" src="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"></picture> IBM Telemetry

This package uses IBM Telemetry to collect metrics data. By installing this
package as a dependency you are agreeing to telemetry collection. To opt out,
see
[Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection).
For more information on the data being collected, please see the
[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
7 changes: 4 additions & 3 deletions packages/carbon-components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"lib",
"scss",
"index.scss",
"scripts/postinstall.js"
"scripts/postinstall.js",
"telemetry.yml"
],
"keywords": [
"react",
Expand All @@ -33,7 +34,7 @@
"scripts": {
"build": "yarn clean && node tasks/build-styles.js && node tasks/build.js",
"clean": "rimraf es lib",
"postinstall": "carbon-telemetry collect --install && node scripts/postinstall.js"
"postinstall": "ibmtelemetry --config=telemetry.yml && node scripts/postinstall.js"
},
"peerDependencies": {
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
Expand All @@ -43,7 +44,7 @@
"dependencies": {
"@carbon/react": "^1.51.0",
"@carbon/styles": "^1.51.0",
"@carbon/telemetry": "0.1.0",
"@ibm/telemetry-js": "^1.2.1",
"chalk": "1.1.3"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 57012a7

Please sign in to comment.