feat(ci): add token drift detection job to CI pipeline
This commit is contained in:
parent
07bf56a665
commit
7f257df0f5
@ -29,6 +29,30 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm test
|
run: pnpm test
|
||||||
|
|
||||||
|
token-drift:
|
||||||
|
name: Check design token drift
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 5
|
||||||
|
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: Regenerate tokens
|
||||||
|
run: npx tsx packages/design-tokens/scripts/generate.ts
|
||||||
|
|
||||||
|
- name: Check for drift
|
||||||
|
run: |
|
||||||
|
if git diff --exit-code packages/design-tokens/generated/; then
|
||||||
|
echo "✅ No token drift detected"
|
||||||
|
else
|
||||||
|
echo "❌ Token drift detected — run 'npx tsx packages/design-tokens/scripts/generate.ts' and commit"
|
||||||
|
git diff packages/design-tokens/generated/
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
publish-packages:
|
publish-packages:
|
||||||
name: Publish @bytelyst/* to Gitea npm registry
|
name: Publish @bytelyst/* to Gitea npm registry
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user