v0feat: added ability to type return of useClientDb based on db name #38
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 | |
| env: | |
| USE_LOCKFILE: ${{ secrets.USE_LOCKFILE }} | |
| ENABLE_RELEASE: ${{ secrets.ENABLE_RELEASE }} | |
| on: | |
| push: | |
| branches: [ master, alpha, beta, build ] | |
| repository_dispatch: | |
| types: [ release ] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ["lts/*"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/composite-setup | |
| with: | |
| USE_LOCKFILE: ${{ secrets.USE_LOCKFILE }} | |
| - run: pnpm i --frozen-lockfile | |
| working-directory: playground | |
| - name: Build | |
| uses: ./.github/actions/composite-build | |
| - name: Release | |
| if: "env.ENABLE_RELEASE == 'true' && ! contains('refs/heads/build ', github.ref)" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: pnpm semantic-release | |
| - name: Release Dry Run | |
| if: "env.ENABLE_RELEASE != 'true' || contains('refs/heads/build ', github.ref)" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: pnpm semantic-release --dry-run | |
| - run: echo "env.ENABLE_RELEASE is ${{ env.ENABLE_RELEASE == 'true' }} and branch is ${{ github.ref }}, no release can be published." && exit 1 | |
| if: "env.ENABLE_RELEASE != 'true' || contains('refs/heads/build ', github.ref)" |