Skip to content

Commit 0d4292c

Browse files
Merge branch 'RooCodeInc:main' into main
2 parents e113f6f + 664346e commit 0d4292c

File tree

275 files changed

+16313
-12301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+16313
-12301
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Setup Node.js and pnpm"
2+
3+
description: "Sets up Node.js and pnpm with caching and installs dependencies"
4+
5+
inputs:
6+
node-version:
7+
description: "Node.js version to use"
8+
required: false
9+
default: "20.19.2"
10+
pnpm-version:
11+
description: "pnpm version to use"
12+
required: false
13+
default: "10.8.1"
14+
skip-install:
15+
description: "Skip dependency installation"
16+
required: false
17+
default: "false"
18+
install-args:
19+
description: "Additional arguments for pnpm install"
20+
required: false
21+
default: ""
22+
23+
runs:
24+
using: "composite"
25+
steps:
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: ${{ inputs.pnpm-version }}
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ inputs.node-version }}
34+
cache: "pnpm"
35+
- name: Install dependencies
36+
if: ${{ inputs.skip-install != 'true' }}
37+
shell: bash
38+
run: pnpm install ${{ inputs.install-args }}

.github/workflows/changeset-release.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
env:
1010
REPO_PATH: ${{ github.repository }}
1111
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
12-
NODE_VERSION: 20.19.2
13-
PNPM_VERSION: 10.8.1
1412

1513
jobs:
1614
# Job 1: Create version bump PR when changesets are merged to main
@@ -31,18 +29,10 @@ jobs:
3129
with:
3230
fetch-depth: 0
3331
ref: ${{ env.GIT_REF }}
34-
- name: Install pnpm
35-
uses: pnpm/action-setup@v4
32+
- name: Setup Node.js and pnpm
33+
uses: ./.github/actions/setup-node-pnpm
3634
with:
37-
version: ${{ env.PNPM_VERSION }}
38-
- name: Setup Node.js
39-
uses: actions/setup-node@v4
40-
with:
41-
node-version: ${{ env.NODE_VERSION }}
42-
cache: 'pnpm'
43-
44-
- name: Install Dependencies
45-
run: pnpm install
35+
skip-checkout: 'true'
4636

4737
# Check if there are any new changesets to process
4838
- name: Check for changesets

.github/workflows/code-qa.yml

Lines changed: 10 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,14 @@ on:
88
types: [opened, reopened, ready_for_review, synchronize]
99
branches: [main]
1010

11-
env:
12-
NODE_VERSION: 20.19.2
13-
PNPM_VERSION: 10.8.1
14-
1511
jobs:
1612
check-translations:
1713
runs-on: ubuntu-latest
1814
steps:
1915
- name: Checkout code
2016
uses: actions/checkout@v4
21-
- name: Install pnpm
22-
uses: pnpm/action-setup@v4
23-
with:
24-
version: ${{ env.PNPM_VERSION }}
25-
- name: Setup Node.js
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: ${{ env.NODE_VERSION }}
29-
cache: 'pnpm'
30-
- name: Install dependencies
31-
run: pnpm install
17+
- name: Setup Node.js and pnpm
18+
uses: ./.github/actions/setup-node-pnpm
3219
- name: Verify all translations are complete
3320
run: node scripts/find-missing-translations.js
3421

@@ -37,17 +24,8 @@ jobs:
3724
steps:
3825
- name: Checkout code
3926
uses: actions/checkout@v4
40-
- name: Install pnpm
41-
uses: pnpm/action-setup@v4
42-
with:
43-
version: ${{ env.PNPM_VERSION }}
44-
- name: Setup Node.js
45-
uses: actions/setup-node@v4
46-
with:
47-
node-version: ${{ env.NODE_VERSION }}
48-
cache: 'pnpm'
49-
- name: Install dependencies
50-
run: pnpm install
27+
- name: Setup Node.js and pnpm
28+
uses: ./.github/actions/setup-node-pnpm
5129
- name: Run knip checks
5230
run: pnpm knip
5331

@@ -56,17 +34,8 @@ jobs:
5634
steps:
5735
- name: Checkout code
5836
uses: actions/checkout@v4
59-
- name: Install pnpm
60-
uses: pnpm/action-setup@v4
61-
with:
62-
version: ${{ env.PNPM_VERSION }}
63-
- name: Setup Node.js
64-
uses: actions/setup-node@v4
65-
with:
66-
node-version: ${{ env.NODE_VERSION }}
67-
cache: 'pnpm'
68-
- name: Install dependencies
69-
run: pnpm install
37+
- name: Setup Node.js and pnpm
38+
uses: ./.github/actions/setup-node-pnpm
7039
- name: Lint
7140
run: pnpm lint
7241
- name: Check types
@@ -80,17 +49,8 @@ jobs:
8049
steps:
8150
- name: Checkout code
8251
uses: actions/checkout@v4
83-
- name: Install pnpm
84-
uses: pnpm/action-setup@v4
85-
with:
86-
version: ${{ env.PNPM_VERSION }}
87-
- name: Setup Node.js
88-
uses: actions/setup-node@v4
89-
with:
90-
node-version: ${{ env.NODE_VERSION }}
91-
cache: 'pnpm'
92-
- name: Install dependencies
93-
run: pnpm install
52+
- name: Setup Node.js and pnpm
53+
uses: ./.github/actions/setup-node-pnpm
9454
- name: Run unit tests
9555
run: pnpm test
9656

@@ -116,17 +76,8 @@ jobs:
11676
steps:
11777
- name: Checkout code
11878
uses: actions/checkout@v4
119-
- name: Install pnpm
120-
uses: pnpm/action-setup@v4
121-
with:
122-
version: ${{ env.PNPM_VERSION }}
123-
- name: Setup Node.js
124-
uses: actions/setup-node@v4
125-
with:
126-
node-version: ${{ env.NODE_VERSION }}
127-
cache: 'pnpm'
128-
- name: Install dependencies
129-
run: pnpm install
79+
- name: Setup Node.js and pnpm
80+
uses: ./.github/actions/setup-node-pnpm
13081
- name: Create .env.local file
13182
working-directory: apps/vscode-e2e
13283
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local

.github/workflows/marketplace-publish.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77

88
env:
99
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
10-
NODE_VERSION: 20.19.2
11-
PNPM_VERSION: 10.8.1
1210

1311
jobs:
1412
publish-extension:
@@ -25,17 +23,10 @@ jobs:
2523
uses: actions/checkout@v4
2624
with:
2725
ref: ${{ env.GIT_REF }}
28-
- name: Install pnpm
29-
uses: pnpm/action-setup@v4
26+
- name: Setup Node.js and pnpm
27+
uses: ./.github/actions/setup-node-pnpm
3028
with:
31-
version: ${{ env.PNPM_VERSION }}
32-
- name: Setup Node.js
33-
uses: actions/setup-node@v4
34-
with:
35-
node-version: ${{ env.NODE_VERSION }}
36-
cache: 'pnpm'
37-
- name: Install dependencies
38-
run: pnpm install
29+
skip-checkout: 'true'
3930
- name: Configure Git
4031
run: |
4132
git config user.name "github-actions[bot]"

.github/workflows/nightly-publish.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
branches: [main]
99
workflow_dispatch: # Allows manual triggering.
1010

11-
env:
12-
NODE_VERSION: 20.19.2
13-
PNPM_VERSION: 10.8.1
14-
1511
jobs:
1612
publish-nightly:
1713
runs-on: ubuntu-latest
@@ -25,17 +21,11 @@ jobs:
2521
uses: actions/checkout@v4
2622
with:
2723
fetch-depth: 0
28-
- name: Install pnpm
29-
uses: pnpm/action-setup@v4
30-
with:
31-
version: ${{ env.PNPM_VERSION }}
32-
- name: Setup Node.js
33-
uses: actions/setup-node@v4
24+
- name: Setup Node.js and pnpm
25+
uses: ./.github/actions/setup-node-pnpm
3426
with:
35-
node-version: ${{ env.NODE_VERSION }}
36-
cache: 'pnpm'
37-
- name: Install dependencies
38-
run: pnpm install --frozen-lockfile
27+
skip-checkout: 'true'
28+
install-args: '--frozen-lockfile'
3929
- name: Forge numeric Nightly version
4030
id: version
4131
env:

.github/workflows/update-contributors.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,23 @@ on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch: # Allows manual triggering
8-
9-
env:
10-
NODE_VERSION: 20.19.2
11-
PNPM_VERSION: 10.8.1
7+
workflow_dispatch:
128

139
jobs:
1410
update-contributors:
1511
runs-on: ubuntu-latest
1612
permissions:
17-
contents: write # Needed for pushing changes
18-
pull-requests: write # Needed for creating PRs
13+
contents: write # Needed for pushing changes.
14+
pull-requests: write # Needed for creating PRs.
1915
steps:
2016
- name: Checkout code
2117
uses: actions/checkout@v4
22-
- name: Install pnpm
23-
uses: pnpm/action-setup@v4
24-
with:
25-
version: ${{ env.PNPM_VERSION }}
26-
- name: Setup Node.js
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: ${{ env.NODE_VERSION }}
30-
cache: 'pnpm'
18+
- name: Setup Node.js and pnpm
19+
uses: ./.github/actions/setup-node-pnpm
3120
- name: Disable Husky
3221
run: |
3322
echo "HUSKY=0" >> $GITHUB_ENV
3423
git config --global core.hooksPath /dev/null
35-
- name: Install dependencies
36-
run: pnpm install
3724
- name: Update contributors and format
3825
run: |
3926
pnpm update-contributors
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy roocode.com
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'apps/web-roo-code/**'
9+
workflow_dispatch:
10+
11+
env:
12+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
13+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
if: ${{ secrets.VERCEL_TOKEN != '' }}
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
- name: Setup Node.js and pnpm
23+
uses: ./.github/actions/setup-node-pnpm
24+
- name: Install Vercel CLI
25+
run: npm install --global vercel@canary
26+
- name: Pull Vercel Environment Information
27+
run: npx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
28+
- name: Build Project Artifacts
29+
run: npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
30+
- name: Deploy Project Artifacts to Vercel
31+
run: npx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Preview roocode.com
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
paths:
8+
- 'apps/web-roo-code/**'
9+
workflow_dispatch:
10+
11+
env:
12+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
13+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
14+
15+
jobs:
16+
preview:
17+
runs-on: ubuntu-latest
18+
if: ${{ secrets.VERCEL_TOKEN != '' }}
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
- name: Setup Node.js and pnpm
23+
uses: ./.github/actions/setup-node-pnpm
24+
- name: Install Vercel CLI
25+
run: npm install --global vercel@canary
26+
- name: Pull Vercel Environment Information
27+
run: npx vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
28+
- name: Build Project Artifacts
29+
run: npx vercel build --token=${{ secrets.VERCEL_TOKEN }}
30+
- name: Deploy Project Artifacts to Vercel
31+
run: npx vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ logs
4242
# IntelliJ and Qodo plugin folders
4343
.idea/
4444
.qodo/
45+
.vercel

0 commit comments

Comments
 (0)