Skip to content

Commit 4f6da83

Browse files
O6lvl4claude
andcommitted
fix(ci): remove monorepo paths, fix for standalone repo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f1f3370 commit 4f6da83

2 files changed

Lines changed: 23 additions & 81 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -3,109 +3,60 @@ name: CI
33
on:
44
push:
55
branches: [ main, develop ]
6-
paths:
7-
- 'packages/templex/**'
8-
- '.github/workflows/ci.yml'
96
pull_request:
107
branches: [ main ]
11-
paths:
12-
- 'packages/templex/**'
13-
- '.github/workflows/ci.yml'
14-
15-
defaults:
16-
run:
17-
working-directory: packages/templex
188

199
jobs:
2010
test:
2111
runs-on: ubuntu-latest
22-
12+
2313
strategy:
2414
matrix:
25-
node-version: [20.x, 21.x, 22.x]
26-
15+
node-version: [20.x, 22.x]
16+
2717
steps:
2818
- uses: actions/checkout@v4
29-
19+
3020
- name: Use Node.js ${{ matrix.node-version }}
3121
uses: actions/setup-node@v4
3222
with:
3323
node-version: ${{ matrix.node-version }}
3424
cache: 'npm'
35-
cache-dependency-path: packages/templex/package-lock.json
36-
25+
3726
- name: Install dependencies
3827
run: npm ci
39-
28+
4029
- name: Build
4130
run: npm run build
42-
31+
4332
- name: Run type checking
4433
run: npm run typecheck
45-
34+
4635
- name: Run tests
4736
run: npm test
48-
49-
- name: Run test coverage
50-
if: matrix.node-version == '20.x'
51-
run: npm run test:coverage
52-
53-
- name: Upload coverage to Codecov
54-
if: matrix.node-version == '20.x'
55-
uses: codecov/codecov-action@v3
56-
with:
57-
directory: ./packages/templex/coverage
58-
flags: unittests
59-
name: codecov-umbrella
60-
fail_ci_if_error: false
61-
62-
lint:
63-
runs-on: ubuntu-latest
64-
65-
steps:
66-
- uses: actions/checkout@v4
67-
68-
- name: Use Node.js
69-
uses: actions/setup-node@v4
70-
with:
71-
node-version: '20.x'
72-
cache: 'npm'
73-
cache-dependency-path: packages/templex/package-lock.json
74-
75-
- name: Install dependencies
76-
run: npm ci
77-
78-
- name: Run linter
79-
run: npm run lint
80-
continue-on-error: true
81-
82-
- name: Check formatting
83-
run: npm run format -- --check
84-
continue-on-error: true
8537

8638
integration-test:
8739
runs-on: ubuntu-latest
8840
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
89-
41+
9042
steps:
9143
- uses: actions/checkout@v4
92-
44+
9345
- name: Use Node.js
9446
uses: actions/setup-node@v4
9547
with:
9648
node-version: '20.x'
9749
cache: 'npm'
98-
cache-dependency-path: packages/templex/package-lock.json
99-
50+
10051
- name: Install dependencies
10152
run: npm ci
102-
53+
10354
- name: Build
10455
run: npm run build
105-
56+
10657
- name: Run integration tests
10758
env:
10859
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
10960
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
11061
run: npm run test:integration
111-
continue-on-error: true
62+
continue-on-error: true

.github/workflows/release.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'templex-v*'
7-
8-
defaults:
9-
run:
10-
working-directory: packages/templex
6+
- 'v*'
117

128
permissions:
139
contents: write
@@ -16,41 +12,36 @@ permissions:
1612
jobs:
1713
build-and-publish:
1814
runs-on: ubuntu-latest
19-
15+
2016
steps:
2117
- uses: actions/checkout@v4
22-
18+
2319
- name: Use Node.js
2420
uses: actions/setup-node@v4
2521
with:
2622
node-version: '20.x'
2723
registry-url: 'https://registry.npmjs.org'
2824
cache: 'npm'
29-
cache-dependency-path: packages/templex/package-lock.json
30-
25+
3126
- name: Install dependencies
3227
run: npm ci
33-
28+
3429
- name: Build
3530
run: npm run build
36-
31+
3732
- name: Run tests
3833
run: npm test
39-
34+
4035
- name: Publish to npm
4136
run: npm publish --access public
4237
env:
4338
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44-
39+
4540
- name: Create GitHub Release
4641
uses: softprops/action-gh-release@v1
4742
with:
48-
files: |
49-
packages/templex/dist/**
50-
packages/templex/README.md
51-
packages/templex/CHANGELOG.md
5243
generate_release_notes: true
5344
draft: false
5445
prerelease: false
5546
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)