chore: package version update #47
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: Release CLI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - alpha | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js and enable Corepack | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20.x" | |
| - name: Enable Corepack and install pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@10.11.0 --activate | |
| - name: Cache pnpm store | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.pnpm-store | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Setup git user | |
| run: | | |
| git config --global user.name "${{ secrets.GH_DEPLOY_NAME }}" | |
| git config --global user.email "${{ secrets.GH_DEPLOY_EMAIL }}" | |
| - name: Build and prepare release | |
| run: pnpm install --frozen-lockfile && pnpm prepare-release | |
| - name: Release package | |
| run: pnpm exec semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GIT_AUTHOR_EMAIL: ${{ secrets.GH_DEPLOY_EMAIL }} | |
| GIT_AUTHOR_NAME: ${{ secrets.GH_DEPLOY_NAME }} | |
| GIT_COMMITTER_EMAIL: ${{ secrets.GH_DEPLOY_EMAIL }} | |
| GIT_COMMITTER_NAME: ${{ secrets.GH_DEPLOY_NAME }} |