Skip to content
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

deps(cwc): update package name references to @carbon/carbon-web-components #9686

Merged
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: 2 additions & 2 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: ci-check

on:
push:
branches: [ main, release/*, chore/revert-cwc-import ]
branches: [ main, release/* ]
pull_request:
branches: [ main, release/*, chore/revert-cwc-import ]
branches: [ main, release/* ]

concurrency:
group: ci-check-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name: "CodeQL"

on:
push:
branches: [ main, release/*, chore/revert-cwc-import ]
branches: [ main, release/* ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
Expand Down
63 changes: 60 additions & 3 deletions .github/workflows/deploy-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,63 @@ concurrency:
cancel-in-progress: true

jobs:
carbon-web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
token: ${{secrets.MERGE_ACTION}}
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: '14.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn lerna run --scope @carbon/carbon-web-components build

- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/carbon-web-components/.env
env:
KALTURA_PARTNER_ID: ${{ secrets.KALTURA_PARTNER_ID }}
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PROFILE_HOST: ${{ secrets.PROFILE_HOST }}
- name: Building @carbon/carbon-web-components storybook
run: yarn build-storybook
working-directory: packages/carbon-web-components
- name: Move storybook to build folder
run: |
rm packages/carbon-web-components/.env
mkdir -p builds
mv packages/carbon-web-components/storybook-static builds/carbon-web-components

- name: Deploying @carbon/carbon-web-components storybook to Github Pages
run: |
git config --global user.email ${{ secrets.BOT_EMAIL }}
git config --global user.name ${{ secrets.BOT_NAME }}

git fetch origin gh-pages
git checkout -b gh-pages origin/gh-pages
git update-ref -d refs/remotes/origin/gh-pages
git pull origin gh-pages

rm -rf canary/carbon-web-components
mkdir -p canary
mv builds/carbon-web-components canary/carbon-web-components

git add canary/carbon-web-components
git commit -m "chore(deploy): deploy Carbon web components canary to GitHub Pages"
git push origin gh-pages
- uses: act10ns/slack@v1
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
react:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
Expand All @@ -25,7 +82,7 @@ jobs:
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-web-components --ignore @carbon/ibmdotcom-services-store build
run: yarn lerna run --scope @carbon/ibmdotcom-react build

- name: Set env vars
uses: ./.github/actions/set-dotenv
Expand Down Expand Up @@ -121,7 +178,7 @@ jobs:
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-react build
run: yarn lerna run --scope @carbon/ibmdotcom-web-components build

- name: Set env vars
uses: ./.github/actions/set-dotenv
Expand Down Expand Up @@ -236,7 +293,7 @@ jobs:
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-react --ignore @carbon/ibmdotcom-web-components --ignore @carbon/ibmdotcom-services-store build
run: yarn lerna run --scope @carbon/ibmdotcom-services build
- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
Expand Down
61 changes: 59 additions & 2 deletions .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,63 @@ concurrency:
cancel-in-progress: true

jobs:
carbon-web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
token: ${{secrets.MERGE_ACTION}}
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: '14.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn lerna run --scope @carbon/carbon-web-components build

- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/carbon-web-components/.env
env:
KALTURA_PARTNER_ID: ${{ secrets.KALTURA_PARTNER_ID }}
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PROFILE_HOST: ${{ secrets.PROFILE_HOST }}
- name: Building @carbon/carbon-web-components (next) storybook
run: yarn build-storybook
working-directory: packages/carbon-web-components
- name: Move storybook to build folder
run: |
rm packages/carbon-web-components/.env
mkdir -p builds
mv packages/carbon-web-components/storybook-static builds/carbon-web-components

- name: Deploying @carbon/carbon-web-components (next) storybook to Github Pages
run: |
git config --global user.email ${{ secrets.BOT_EMAIL }}
git config --global user.name ${{ secrets.BOT_NAME }}

git fetch origin gh-pages
git checkout -b gh-pages origin/gh-pages
git update-ref -d refs/remotes/origin/gh-pages
git pull origin gh-pages

rm -rf next/carbon-web-components
mkdir -p next
mv builds/carbon-web-components next/carbon-web-components

git add next/carbon-web-components
git commit -m "chore(deploy): deploy Carbon web components next to GitHub Pages"
git push origin gh-pages
- uses: act10ns/slack@v1
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
react:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
Expand All @@ -25,7 +82,7 @@ jobs:
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-web-components --ignore @carbon/ibmdotcom-services-store build
run: yarn lerna run --scope @carbon/ibmdotcom-react build

- name: Set env vars
uses: ./.github/actions/set-dotenv
Expand Down Expand Up @@ -101,7 +158,7 @@ jobs:
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn lerna run --stream --ignore @carbon/ibmdotcom-react build
run: yarn lerna run --scope @carbon/ibmdotcom-web-components build

- name: Set env vars
uses: ./.github/actions/set-dotenv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: e2e-integration

on:
push:
branches: [ main, release/*, chore/revert-cwc-import ]
branches: [ main, release/* ]
schedule:
- cron: '0 20 * * 1-5'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: e2e-tests

on:
push:
branches: [ main, release/*, chore/revert-cwc-import ]
branches: [ main, release/* ]
pull_request:
branches: [ main, release/*, chore/revert-cwc-import ]
branches: [ main, release/* ]

concurrency:
group: e2e-tests-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/percy-update-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: percy-update-base

on:
push:
branches: [ main, release/*, chore/revert-cwc-import ]
branches: [ main, release/* ]

concurrency:
group: percy-update-base-${{ github.ref }}
Expand Down
Binary file removed .yarn/offline-mirror/carbon-components-10.52.0.tgz
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@angular/platform-browser-dynamic": "^8.0.0",
"@angular/router": "^8.0.0",
"@babel/runtime": "^7.8.0",
"carbon-web-components": "^1.19.0",
"@carbon/carbon-web-components": "latest",
"rxjs": "^6.0.0",
"tslib": "^1.10.0",
"zone.js": "~0.9.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"carbon-web-components": "latest"
"@carbon/carbon-web-components": "latest"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down
Loading