From 57fc78345102959f4a9c542690604b368c9f8505 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Fri, 27 Mar 2026 23:06:45 -0700 Subject: [PATCH] fix(ci): remove secrets.GITEA_NPM_TOKEN override + add git reset for dirty workdir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .gitea/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9354ea31..bdc05fed 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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