diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7ece118fc..d9cdf3104 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,19 +2,17 @@ name: CI on: push: - branches: [main] + branches: [1.x] pull_request: - branches: [main] + branches: [1.x] jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v4 - - - run: pnpm env use --global 22 + - uses: pnpm/action-setup@v6 - run: pnpm i @@ -39,14 +37,14 @@ jobs: ports: - 6379:6379 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 runtime set node 22 + - run: pnpm run test:coverage env: REDIS_URL: redis://localhost:6379 @@ -60,11 +58,9 @@ jobs: publish-commit: 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 diff --git a/.github/workflows/pullfrog.yml b/.github/workflows/pullfrog.yml index 19401170c..68a2225cd 100644 --- a/.github/workflows/pullfrog.yml +++ b/.github/workflows/pullfrog.yml @@ -1,57 +1,28 @@ -# PULLFROG ACTION — DO NOT EDIT EXCEPT WHERE INDICATED -name: Pullfrog -run-name: ${{ inputs.name || github.workflow }} +name: Sponsors Sync + on: + schedule: + - cron: '0 1 * * *' workflow_dispatch: - inputs: - prompt: - type: string - description: Agent prompt - name: - type: string - description: Run name - -permissions: - contents: read jobs: - pullfrog: + sync: runs-on: ubuntu-latest permissions: - id-token: write - contents: read + contents: write steps: - - name: Checkout code - uses: actions/checkout@v6 - with: - fetch-depth: 1 - - name: Run agent - uses: pullfrog/pullfrog@v0 - with: - prompt: ${{ inputs.prompt }} - env: - # add at least one provider API key - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - GOOGLE_GENERATIVE_AI_API_KEY: - ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }} - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - XAI_API_KEY: ${{ secrets.XAI_API_KEY }} - DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }} - MOONSHOT_API_KEY: ${{ secrets.MOONSHOT_API_KEY }} - OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} - OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} + - uses: actions/checkout@v7 - # for Amazon Bedrock (https://docs.pullfrog.com/bedrock) - # AWS_BEARER_TOKEN_BEDROCK: ${{ secrets.AWS_BEARER_TOKEN_BEDROCK }} - # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - # AWS_REGION: us-east-1 - # BEDROCK_MODEL_ID: + - uses: pnpm/action-setup@v6 - # for Google Vertex AI (https://docs.pullfrog.com/vertex) - # VERTEX_SERVICE_ACCOUNT_JSON: ${{ secrets.VERTEX_SERVICE_ACCOUNT_JSON }} - # GOOGLE_CLOUD_PROJECT: my-project - # VERTEX_LOCATION: global - # VERTEX_MODEL_ID: + - run: pnpm i + + - run: pnpm run sponsors:sync + + - uses: EndBug/add-and-commit@v10 + with: + author_name: GitHub Actions + author_email: 41898282+github-actions[bot]@users.noreply.github.com + message: 'chore: sync sponsors' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3d3f27a7c..ae253018f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,5 @@ name: Release - +run-name: ${{ github.workflow }} v${{ inputs.version }} on: workflow_dispatch: inputs: @@ -7,6 +7,25 @@ on: description: 'Bump version (e.g., 4.0.0, 4.1.0-alpha.1, 5.0.0-beta.2)' required: true type: string + tag: + description: 'npm dist-tag to publish under (leave empty to fallback to preid, or "latest" for stable)' + required: false + type: string + skip_git_check: + description: Skip git checks when publishing (--no-git-checks) + required: false + type: boolean + default: false + skip_bump: + description: Skip version bump (bumpp) step + required: false + type: boolean + default: false + skip_changelog: + description: Skip changelog generation (changelogithub) step + required: false + type: boolean + default: false concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -39,13 +58,11 @@ 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 @@ -53,16 +70,14 @@ jobs: 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 + if: ${{ github.event.inputs.skip_bump != 'true' }} - - run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" + - run: pnpm exec changelogithub --draft + if: ${{ github.event.inputs.skip_changelog != 'true' }} env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: pnpm run packages:publish --tag=${{ steps.version.outputs.preid || 'latest' }} - env: - NPM_CONFIG_PROVENANCE: true + - run: pnpm --filter='./packages/*' run -r build - - run: pnpm run packages:changelog:github - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: pnpm --filter='./packages/*' publish -r --provenance --access=public --tag=${{ github.event.inputs.tag || steps.version.outputs.preid || 'latest' }} ${{ github.event.inputs.skip_git_check == 'true' && '--no-git-checks' || '' }} diff --git a/.github/workflows/sponsors-sync.yaml b/.github/workflows/sponsors-sync.yaml index 9962a7782..68a2225cd 100644 --- a/.github/workflows/sponsors-sync.yaml +++ b/.github/workflows/sponsors-sync.yaml @@ -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 diff --git a/README.md b/README.md index 293bc5c11..8dc8d5975 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@
- codecov + codecov weekly downloads - + MIT License @@ -206,7 +206,7 @@ If you find oRPC valuable and would like to support its development, you can do - +
ScreenshotOne.com
ScreenshotOne.com
ScreenshotOne.com
ScreenshotOne.com
@@ -214,7 +214,7 @@ If you find oRPC valuable and would like to support its development, you can do - +
村上さん
村上さん
村上さん
村上さん
@@ -222,7 +222,7 @@ If you find oRPC valuable and would like to support its development, you can do - +
LN Markets
LN Markets
LN Markets
LN Markets
@@ -230,26 +230,26 @@ If you find oRPC valuable and would like to support its development, you can do - - - - - - + + + + + + - - - - - - + + + + + + - - - - + + + +
Reece McDonald
Reece McDonald
nk
nk
supastarter
supastarter
Dexter Miguel
Dexter Miguel
herrfugbaum
herrfugbaum
Ryota Murakami
Ryota Murakami
Reece McDonald
Reece McDonald
あわわわとーにゅ
あわわわとーにゅ
nk
nk
supastarter
supastarter
Dexter Miguel
Dexter Miguel
herrfugbaum
herrfugbaum
David Cramer
David Cramer
Valerii Petryniak
Valerii Petryniak
Valerii Strilets
Valerii Strilets
Kyle Mistele
Kyle Mistele
Andrew Peters
Andrew Peters
Ryan Vogel
Ryan Vogel
Ryota Murakami
Ryota Murakami
David Cramer
David Cramer
Valerii Petryniak
Valerii Petryniak
Valerii Strilets
Valerii Strilets
Kyle Mistele
Kyle Mistele
christ12938
christ12938
christ12938
christ12938
Peter Adam
Peter Adam
Ryan Soderberg
Ryan Soderberg
shota
shota
Ryan Soderberg
Ryan Soderberg
shota
shota
Ellis Driscoll
Ellis Driscoll
Hoang Nguyen
Hoang Nguyen
@@ -257,67 +257,31 @@ If you find oRPC valuable and would like to support its development, you can do - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - + + +
David Walsh
David Walsh
Robbe Vaes
Robbe Vaes
Aidan Sunbury
Aidan Sunbury
soonoo
soonoo
Kevin Porten
Kevin Porten
Denis
Denis
Christopher Kapic
Christopher Kapic
David Walsh
David Walsh
Robbe Vaes
Robbe Vaes
Aidan Sunbury
Aidan Sunbury
soonoo
soonoo
Kevin Porten
Kevin Porten
Denis
Denis
Christopher Kapic
Christopher Kapic
Tom Ballinger
Tom Ballinger
Sam
Sam
Titoine
Titoine
Igor Makowski
Igor Makowski
hanayashiki
hanayashiki
Lev Dubinets
Lev Dubinets
Kelly Peilin Chan
Kelly Peilin Chan
Tom Ballinger
Tom Ballinger
Sam
Sam
Titoine
Titoine
Igor Makowski
Igor Makowski
hanayashiki
hanayashiki
Lev Dubinets
Lev Dubinets
Kelly Peilin Chan
Kelly Peilin Chan
Alex
Alex
nattstack
nattstack
Andrey Gubanov
Andrey Gubanov
Guy Ariely
Guy Ariely
Alex
Alex
Andrey Gubanov
Andrey Gubanov
-### Past Sponsors - -

- Maxie - Stijn Timmer - あわわわとーにゅ - Zuplo - motopods - Francisco Hermida - Théo LUDWIG - Abhay Ramesh - shr.ink oü - 0x4e32 - Ryuz - happyboy - yicchi - Saksham - Roman Hrynevych - rokitg - Omar Khatib - Yu-Sabo - Bapusaheb Patil - grim - Nelson Lai - Lê Cao Nguyên - Robert Soriano - SKostyukovich - Fabworks - Novak Antonijevic - Laduni Estu Syalwa - Chen, Zhi-Yuan - Illarion Koperski - Anees Iqbal - Sefa Eyeoglu - Adam Tkaczyk - plancraft -

+With thanks to 37 past sponsors who helped get oRPC here. ## References @@ -328,4 +292,4 @@ oRPC is inspired by existing solutions that prioritize type safety and developer ## License -Distributed under the MIT License. See [LICENSE](https://github.com/middleapi/orpc/blob/main/LICENSE) for more information. +Distributed under the MIT License. See [LICENSE](https://github.com/middleapi/orpc/blob/1.x/LICENSE) for more information. diff --git a/apps/content/.vitepress/config.ts b/apps/content/.vitepress/config.ts index 423151563..4a72a9395 100644 --- a/apps/content/.vitepress/config.ts +++ b/apps/content/.vitepress/config.ts @@ -56,7 +56,7 @@ export default withMermaid(defineConfig({ { icon: 'bluesky', link: 'https://bsky.app/profile/middleapi.com' }, ], editLink: { - pattern: 'https://github.com/middleapi/orpc/blob/main/apps/content/:path', + pattern: 'https://github.com/middleapi/orpc/blob/1.x/apps/content/:path', text: 'Edit on GitHub', }, footer: { diff --git a/apps/content/.vitepress/theme/components/AsideSponsors.vue b/apps/content/.vitepress/theme/components/AsideSponsors.vue index 8c2b4dc02..4ae935259 100644 --- a/apps/content/.vitepress/theme/components/AsideSponsors.vue +++ b/apps/content/.vitepress/theme/components/AsideSponsors.vue @@ -6,20 +6,20 @@ const smallSponsors = sponsors.filter(s => s.sidebarSize === 'small') - + diff --git a/apps/content/.vitepress/theme/components/VideoTestimonials.vue b/apps/content/.vitepress/theme/components/VideoTestimonials.vue index 66a7628e9..21e137258 100644 --- a/apps/content/.vitepress/theme/components/VideoTestimonials.vue +++ b/apps/content/.vitepress/theme/components/VideoTestimonials.vue @@ -16,10 +16,10 @@ const videos = [