Skip to content

Commit 2c19df5

Browse files
authored
Merge pull request #21 from codemie-ai/squashed-whitelabel
Squash whitelabel commits into 2 clean commits
2 parents 7e681b0 + 1049d6b commit 2c19df5

53 files changed

Lines changed: 790 additions & 209 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
name: deploy
22

3+
# Disabled: Cloudflare deployment is not used for local-only codemie.
4+
# Artifacts are produced by the publish-codemie workflow instead.
5+
# To re-enable, restore the push trigger below.
36
on:
4-
push:
5-
branches:
6-
- dev
7-
- production
87
workflow_dispatch:
98

109
concurrency: ${{ github.workflow }}-${{ github.ref }}
1110

1211
jobs:
1312
deploy:
14-
runs-on: blacksmith-4vcpu-ubuntu-2404
13+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
1514
steps:
1615
- uses: actions/checkout@v3
1716

@@ -30,9 +29,7 @@ jobs:
3029
- name: Fix Pulumi version conflict
3130
run: sudo rm -f /usr/local/bin/pulumi-language-nodejs
3231

33-
- run: bun sst deploy --stage=${{ github.ref_name }}
32+
- run: bun sst deploy --stage=${{ github.ref_name }} --print-logs
3433
env:
3534
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
36-
PLANETSCALE_SERVICE_TOKEN_NAME: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_NAME }}
37-
PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
38-
STRIPE_SECRET_KEY: ${{ github.ref_name == 'production' && secrets.STRIPE_SECRET_KEY_PROD || secrets.STRIPE_SECRET_KEY_DEV }}
35+
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_DEFAULT_ACCOUNT_ID }}

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
generate:
10-
runs-on: blacksmith-4vcpu-ubuntu-2404
10+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
1111
permissions:
1212
contents: write
1313
pull-requests: write

.github/workflows/nix-eval.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
nix-eval:
19-
runs-on: blacksmith-4vcpu-ubuntu-2404
19+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
2020
timeout-minutes: 15
2121
steps:
2222
- name: Checkout repository

.github/workflows/nix-hashes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
matrix:
2727
include:
2828
- system: x86_64-linux
29-
runner: blacksmith-4vcpu-ubuntu-2404
29+
runner: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
3030
- system: aarch64-linux
31-
runner: blacksmith-4vcpu-ubuntu-2404-arm
31+
runner: ${{ vars.RUNNER_UBUNTU_ARM || 'blacksmith-4vcpu-ubuntu-2404-arm' }}
3232
- system: x86_64-darwin
3333
runner: macos-15-intel
3434
- system: aarch64-darwin
@@ -77,7 +77,7 @@ jobs:
7777
update-hashes:
7878
needs: compute-hash
7979
if: github.event_name != 'pull_request'
80-
runs-on: blacksmith-4vcpu-ubuntu-2404
80+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
8181

8282
steps:
8383
- name: Checkout repository

.github/workflows/pr-management.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
check-duplicates:
9-
runs-on: blacksmith-4vcpu-ubuntu-2404
9+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
1010
permissions:
1111
contents: read
1212
pull-requests: write
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: publish-codemie
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
bump:
7+
description: "Bump major, minor, or patch"
8+
required: false
9+
type: choice
10+
options:
11+
- major
12+
- minor
13+
- patch
14+
version:
15+
description: "Override version (optional)"
16+
required: false
17+
type: string
18+
19+
permissions:
20+
id-token: write
21+
contents: read
22+
23+
jobs:
24+
publish:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 0
30+
31+
- uses: ./.github/actions/setup-bun
32+
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: "24"
36+
registry-url: "https://registry.npmjs.org"
37+
38+
- name: Determine version
39+
id: version
40+
run: ./script/version.ts
41+
env:
42+
GH_TOKEN: ${{ github.token }}
43+
OPENCODE_BUMP: ${{ inputs.bump }}
44+
OPENCODE_VERSION: ${{ inputs.version }}
45+
OPENCODE_NPM_PACKAGE: "@codemieai/codemie-opencode"
46+
OPENCODE_SKIP_RELEASE: "true"
47+
48+
- name: Build codemie
49+
run: bun run build
50+
working-directory: packages/codemie
51+
env:
52+
OPENCODE_VERSION: ${{ steps.version.outputs.version }}
53+
OPENCODE_RELEASE: ${{ steps.version.outputs.release }}
54+
GH_TOKEN: ${{ github.token }}
55+
56+
- name: Publish codemie to npm
57+
run: bun run publish:npm
58+
working-directory: packages/codemie
59+
env:
60+
OPENCODE_VERSION: ${{ steps.version.outputs.version }}
61+
OPENCODE_RELEASE: ${{ steps.version.outputs.release }}
62+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
63+
NPM_CONFIG_PROVENANCE: false

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
unit:
1111
name: unit (linux)
12-
runs-on: blacksmith-4vcpu-ubuntu-2404
12+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
1313
defaults:
1414
run:
1515
shell: bash
@@ -38,10 +38,10 @@ jobs:
3838
matrix:
3939
settings:
4040
- name: linux
41-
host: blacksmith-4vcpu-ubuntu-2404
41+
host: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
4242
playwright: bunx playwright install --with-deps
4343
- name: windows
44-
host: blacksmith-4vcpu-windows-2025
44+
host: ${{ vars.RUNNER_WINDOWS || 'blacksmith-4vcpu-windows-2025' }}
4545
playwright: bunx playwright install
4646
runs-on: ${{ matrix.settings.host }}
4747
env:
@@ -81,7 +81,7 @@ jobs:
8181
8282
required:
8383
name: test (linux)
84-
runs-on: blacksmith-4vcpu-ubuntu-2404
84+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
8585
needs:
8686
- unit
8787
- e2e

.github/workflows/typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
typecheck:
12-
runs-on: blacksmith-4vcpu-ubuntu-2404
12+
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4

bun.lock

Lines changed: 20 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/codemie/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

0 commit comments

Comments
 (0)