fix(ci): remove secrets.GITEA_NPM_TOKEN override + add git reset for dirty workdir
- Publish job was overriding runner env with empty string via secrets ref - Build job could fail on dirty workdir from previous failed run - Runner env already provides GITEA_NPM_TOKEN — no secrets store needed
This commit is contained in:
parent
d4c8384cfe
commit
57fc783451
@ -17,8 +17,8 @@ jobs:
|
||||
run:
|
||||
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
steps:
|
||||
- name: Pull latest
|
||||
run: git pull --ff-only origin main || true
|
||||
- name: Reset and pull latest
|
||||
run: git reset --hard HEAD && git clean -fd && git pull --ff-only origin main || true
|
||||
|
||||
- name: Build all packages
|
||||
run: pnpm -r --filter './packages/**' build
|
||||
@ -37,8 +37,8 @@ jobs:
|
||||
run:
|
||||
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
steps:
|
||||
- name: Pull latest
|
||||
run: git pull --ff-only origin main || true
|
||||
- name: Reset and pull latest
|
||||
run: git reset --hard HEAD && git clean -fd && git pull --ff-only origin main || true
|
||||
|
||||
- name: Regenerate tokens
|
||||
run: npx tsx packages/design-tokens/scripts/generate.ts
|
||||
@ -62,13 +62,11 @@ jobs:
|
||||
run:
|
||||
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
steps:
|
||||
- name: Pull latest
|
||||
run: git pull --ff-only origin main || true
|
||||
- name: Reset and pull latest
|
||||
run: git reset --hard HEAD && git clean -fd && 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user