fix: improve doc logo #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] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| if: github.repository == 'will-be-done/hyperdb' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.8.0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check formatting | |
| run: pnpm run format:check | |
| - name: Lint | |
| run: pnpm run lint | |
| - name: TypeCheck | |
| run: pnpm run ts | |
| - name: Install Playwright browsers | |
| run: pnpm --filter '@will-be-done/hyperdb' exec playwright install --with-deps chromium | |
| - name: Test | |
| run: pnpm run test | |
| - name: Check import cycles | |
| run: pnpm run lint:cycles | |
| - name: Check release state | |
| id: release-state | |
| run: | | |
| if find .changeset -maxdepth 1 -name '*.md' ! -name README.md | grep -q .; then | |
| echo "has_changesets=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "has_changesets=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| if npm view @will-be-done/hyperdb version >/dev/null 2>&1; then | |
| echo "package_exists=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "package_exists=false" >> "$GITHUB_OUTPUT" | |
| echo "::notice::@will-be-done/hyperdb is not published yet. Create/version PRs can run, but OIDC publishing is skipped until the first npm version exists and Trusted Publishing is configured." | |
| fi | |
| - name: Create release PR or publish | |
| if: steps.release-state.outputs.has_changesets == 'true' || steps.release-state.outputs.package_exists == 'true' | |
| uses: changesets/action@v1 | |
| with: | |
| version: pnpm run version-packages | |
| publish: pnpm run release | |
| title: Version packages | |
| commit: Version packages | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |