learning_ai_common_plat/.gitea/workflows/ci.yml
saravanakumardb1 5da706ead1 ci: correct on-disk path in CI workflows (/opt/bytelyst → /Users/sd9235/code/mygh)
The 'Build, Test & Typecheck' job was failing immediately at its
first 'Pull latest' step with:

  /opt/bytelyst/learning_ai_common_plat: No such file or directory
  exit status 1

The act_runner on this host has the monorepo at
/Users/sd9235/code/mygh/learning_ai_common_plat (same pattern as
the consumer repos that switched to the on-disk workflow earlier
today). The legacy /opt/bytelyst/* path predates the migration and
never existed on this host.

Replaced all 10 occurrences across both CI workflow files
(.gitea/workflows/ci.yml and publish.yml) with sed. No script
content changed, only the cd target.
2026-05-23 15:34:42 -07:00

84 lines
2.1 KiB
YAML

name: CI — Common Platform
on:
push:
branches: [main]
paths:
- 'packages/**'
- 'services/**'
- 'dashboards/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'package.json'
- 'tsconfig.base.json'
concurrency:
group: ci-common-plat-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build, Test & Typecheck
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Pull latest
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
git fetch origin main
git checkout main
git reset --hard origin/main
- name: Install dependencies
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
pnpm install --frozen-lockfile
- name: Build all packages
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
pnpm build
- name: Lint
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
pnpm lint
- name: Typecheck
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
pnpm typecheck
- name: Test
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
pnpm test
publish-packages:
name: Publish @bytelyst/* to Gitea npm registry
runs-on: ubuntu-latest
needs: [build-and-test]
timeout-minutes: 15
steps:
- name: Pull latest
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
git fetch origin main
git checkout main
git reset --hard origin/main
- name: Install dependencies
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
pnpm install --frozen-lockfile
- name: Build all packages
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
pnpm build
- name: Publish outdated packages to Gitea registry
run: |
cd /Users/sd9235/code/mygh/learning_ai_common_plat
bash ./scripts/gitea/publish-outdated-packages.sh --skip-build