Create new patch release component library version #168
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create New Component Library Version | |
| run-name: Create new ${{ github.event.inputs.version }} ${{ github.event.inputs.channel }} component library version | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Version | |
| type: choice | |
| options: | |
| - major | |
| - minor | |
| - patch | |
| default: minor | |
| channel: | |
| description: Channel | |
| type: choice | |
| options: | |
| - release | |
| - beta | |
| default: release | |
| whats_new: | |
| description: What is new in this version? | |
| type: string | |
| required: false | |
| env: | |
| CI: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.BCC_BOT_ACCESS_TOKEN }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| registry-url: "https://registry.npmjs.org" | |
| cache: "pnpm" | |
| cache-dependency-path: component-library/pnpm-lock.yaml | |
| - name: Set commit author to bcc-bot | |
| run: | | |
| git config --global user.name "bcc-bot" | |
| git config --global user.email "84040471+bcc-bot@users.noreply.github.com" | |
| - name: Version new ${{ github.event.inputs.version }} version | |
| run: pnpm run create-version "${{ github.event.inputs.version }}" "${{ github.event.inputs.channel }}" "${{ github.event.inputs.whats_new }}" | |
| working-directory: component-library | |
| - name: Push | |
| run: git push --follow-tags |