Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# copy this file and rename it to .env
# then fill in the appropriate values

# Some tests in the project depend on Redis or Upstash Redis
# You can create a free redis instance at upstash and copy the connection details here
# Some project tests depend on Redis or Upstash Redis.
# You can create a free Redis instance on Upstash and add its connection details here.
# Point Redis and Upstash variables to the same server, as some cross-adapter tests rely on this.
REDIS_URL=
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: [dinwwwh] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [unnoq] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ updates:
- eslint
- '@antfu/eslint-config'
- 'eslint-plugin-*'
hey-api:
patterns:
- '@hey-api/*'
dev-dependencies-minor-patch:
dependency-type: development
exclude-patterns:
- eslint
- '@antfu/eslint-config'
- 'eslint-plugin-*'
- '@hey-api/*'
- compression # inline
update-types:
- minor
Expand Down
52 changes: 21 additions & 31 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,66 +6,56 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
lint:
lint_and_typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
- uses: actions/checkout@v7

- run: pnpm env use --global 22
- uses: pnpm/action-setup@v6

- run: pnpm i

- run: pnpm run lint

- run: pnpm run type:check

- name: Ensure apps/content builds successfully
working-directory: apps/content
run: pnpm run build

test:
test_node_matrix:
runs-on: ubuntu-latest
services:
redis:
image: redis:7-alpine
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
strategy:
matrix:
node-version: [24, 22, 20]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v6

- run: pnpm env use --global 22
- run: pnpm runtime set node ${{ matrix.node-version }}

- run: pnpm i

- run: pnpm run test:coverage
env:
REDIS_URL: redis://localhost:6379
REDIS_URL: ${{ secrets.REDIS_URL }}
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }}
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}

- uses: codecov/codecov-action@v5
- uses: codecov/codecov-action@v7
if: matrix.node-version == 24
with:
token: ${{ secrets.CODECOV_TOKEN }}

publish-commit:
publish_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
- uses: actions/checkout@v7

- run: pnpm env use --global 22
- uses: pnpm/action-setup@v6

- run: pnpm i

- run: pnpm run packages:publish:commit
- run: pnpm --filter='./packages/*' run -r build && pnpm exec pkg-pr-new publish './packages/*' --pnpm --compact --template './playgrounds/*'
57 changes: 0 additions & 57 deletions .github/workflows/pullfrog.yml

This file was deleted.

12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,28 @@ jobs:
exit 1
fi

- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4

- run: pnpm env use --global 22
- uses: pnpm/action-setup@v6

- run: pnpm i

- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- run: pnpm run packages:bump ${{ github.event.inputs.version }} --yes
- run: pnpm exec bumpp -r ${{ github.event.inputs.version }} --yes

- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm run packages:publish --tag=${{ steps.version.outputs.preid || 'latest' }}
- run: pnpm --filter='./packages/*' run -r build && pnpm --filter='./packages/*' publish -r --access=public --tag=${{ steps.version.outputs.preid || 'latest' }}
env:
NPM_CONFIG_PROVENANCE: true

- run: pnpm run packages:changelog:github
- run: pnpm exec changelogithub --draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 4 additions & 8 deletions .github/workflows/sponsors-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: main

- uses: pnpm/action-setup@v4
- uses: actions/checkout@v7

- run: pnpm env use --global 22
- uses: pnpm/action-setup@v6

- run: pnpm i

- run: pnpm sponsors:sync
- run: pnpm run sponsors:sync

- uses: EndBug/add-and-commit@v9
- uses: EndBug/add-and-commit@v10
with:
author_name: GitHub Actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
Expand Down
Loading
Loading