- Add publish-packages job to CI workflow (runs after build-and-test) - Publish 13 remaining packages to Gitea (56 total, up from 43) - Update act_runner token to read+write scope - Fix package counts throughout migration doc (43 → 56) - Update CI status: all 10/10 repos now have CI workflows - Add package inventory section (§15.1)
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: CI — Common Platform
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build, Test & Typecheck
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
defaults:
|
|
run:
|
|
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
steps:
|
|
- name: Pull latest
|
|
run: git pull --ff-only origin main || true
|
|
|
|
- name: Build all packages
|
|
run: pnpm -r --filter './packages/**' build
|
|
|
|
- name: Typecheck
|
|
run: pnpm typecheck
|
|
|
|
- name: Test
|
|
run: pnpm test
|
|
|
|
publish-packages:
|
|
name: Publish @bytelyst/* to Gitea npm registry
|
|
runs-on: ubuntu-latest
|
|
needs: [build-and-test]
|
|
timeout-minutes: 10
|
|
defaults:
|
|
run:
|
|
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
steps:
|
|
- name: Pull latest
|
|
run: git pull --ff-only origin main || true
|
|
|
|
- name: Build all packages
|
|
run: pnpm -r --filter './packages/**' build
|
|
|
|
- name: Publish to local Gitea registry
|
|
env:
|
|
GITEA_NPM_TOKEN: ${{ secrets.GITEA_NPM_TOKEN }}
|
|
run: bash ./scripts/publish-local-gitea-packages.sh
|