From 2dd559c084a746f882cd6aaf928f203756bc0557 Mon Sep 17 00:00:00 2001 From: Jeff Chew Date: Fri, 4 Feb 2022 11:59:17 -0500 Subject: [PATCH] chore(release): bump to v1.21.0 --- .github/workflows/dependabot-yarn-mirror.yml | 46 ++++++++++++++++++++ .github/workflows/publish.yml | 2 +- package.json | 2 +- 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/dependabot-yarn-mirror.yml diff --git a/.github/workflows/dependabot-yarn-mirror.yml b/.github/workflows/dependabot-yarn-mirror.yml new file mode 100644 index 000000000..c16785b84 --- /dev/null +++ b/.github/workflows/dependabot-yarn-mirror.yml @@ -0,0 +1,46 @@ +name: dependabot-yarn-mirror + +on: + push: + branches: [ dependabot/**/* ] + pull_request: + branches: [ dependabot/**/* ] + +concurrency: + group: dependabot-yarn-mirror-${{ github.ref }} + cancel-in-progress: true + +jobs: + yarn-mirror: + if: github.repository == 'carbon-design-system/carbon-web-components' + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['14.x'] + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.GH_TOKEN }} + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + - name: Get branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: get_branch + - name: Install dependencies + run: yarn install + - name: Push changes + run: | + if [ -z "$(git status --porcelain)" ]; then + echo "Mirror is clean, exiting..." + else + git config --global user.email ${{ secrets.BOT_EMAIL }} + git config --global user.name ${{ secrets.BOT_NAME }} + + git add -A + git commit -m "chore(yarn): update yarn offline mirror" + git push origin ${{ steps.get_branch.outputs.branch }} + fi diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f3671288e..f459d9723 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Use Node.js 16.x uses: actions/setup-node@v2 with: @@ -46,5 +47,4 @@ jobs: with: bodyFile: "CHANGELOG.md" tag: v${{ steps.publish.outputs.version }} - commit: main token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index a57c548aa..6d32698b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-web-components", - "version": "1.20.0", + "version": "1.21.0", "license": "Apache-2.0", "repository": "https://github.com/carbon-design-system/carbon-web-components", "bugs": "https://github.com/carbon-design-system/carbon-web-components/issues",