Skip to content

Commit

Permalink
Merge 764412e into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmdotcom-bot authored Dec 12, 2023
2 parents 5b48b8f + 764412e commit c87b508
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/automerge-cwc-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: automerge-cwc
on:
push:
branches: [ release-cwc/* ]

concurrency:
group: automerge-cwc-${{ github.ref }}
cancel-in-progress: true

jobs:
automerge-cwc:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: actions/checkout@v4
- name: Merge to main
uses: devmasx/[email protected]
with:
type: now
target_branch: 'main'
env:
GITHUB_TOKEN: ${{secrets.MERGE_ACTION}}
- uses: act10ns/slack@v2
with:
status: ${{ job.status }}
if: failure()
69 changes: 69 additions & 0 deletions .github/workflows/deploy-cwc-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: deploy-cwc-next (Deploy storybook environments to Github Pages)

on:
push:
branches:
- release-cwc/*

concurrency:
group: deploy-cwc-next-${{ github.ref }}
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@v4
with:
token: ${{secrets.MERGE_ACTION}}
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Build project
run: yarn lerna run --scope @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/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/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@v2
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
2 changes: 1 addition & 1 deletion packages/carbon-web-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/web-components",
"private": true,
"version": "2.0.2-rc.1",
"version": "2.1.0-rc.0",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit c87b508

Please sign in to comment.