Merge pull request #83 from desko27/changeset-release/main #9
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Build | |
| run: pnpm --filter react-call run build | |
| - name: Dist-Lint | |
| run: pnpm test:dist && pnpm dist-lint | |
| - name: Create release PR or publish | |
| uses: changesets/action@v1 | |
| with: | |
| version: pnpm bump-version | |
| publish: pnpm release | |
| title: "Version Packages" | |
| commit: "chore: version packages" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| LEFTHOOK: "0" |