Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/actions/setup-node/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ runs:
- uses: ./.github/actions/cache-monorepo

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 10
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,24 @@ on:

merge_group: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0

jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- uses: ./.github/actions/setup-node
- name: Check
run: pnpm nx run-many --target=build,lint,test:ci --parallel=3 -p="tag:npm:public"
29 changes: 29 additions & 0 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Claude Code

on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]

permissions:
contents: write
pull-requests: write
issues: write

jobs:
claude:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_args: "--max-turns 10"
1 change: 1 addition & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ permissions:
jobs:
dependency-review:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v5
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:
- edited
- synchronize

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
Expand Down
27 changes: 12 additions & 15 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,33 @@
name: Publish Any Commit
on:
push:
tags:
- '!**'
pull_request:
branches:
- '**'
- main
- next

env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI

permissions: {}
permissions:
contents: read
pull-requests: write
statuses: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
timeout-minutes: 15
steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v5
- uses: ./.github/actions/setup-node
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm nx run-many --target=build --parallel=5 -p="tag:npm:public"
- run: |
- name: Publish preview packages
run: |
PATHS=$(pnpm list --recursive --depth=0 --json | jq -r '.[] | select(.private == false) | .path' | tr '\n' ' ')
pnpx pkg-pr-new publish $PATHS --compact --pnpm

4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
permissions:
contents: read
id-token: write # Required for OIDC trusted publishing
timeout-minutes: 10
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
filter: tree:0
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/sponsorkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,15 @@ on:
schedule:
- cron: '0 0 * * *'
push:
branches: [master]
branches: [main]

jobs:
update-sponsors:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*

- run: corepack enable && pnpm i
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-node

- name: Update sponsors
run: pnpm run sponsorkit
Expand Down
Loading