From 8c3839c2bccfa79a8e5a3fb0a90e342b0ed2135b Mon Sep 17 00:00:00 2001 From: Claude Fable 5 Date: Sun, 5 Jul 2026 00:17:48 +0200 Subject: [PATCH] Fix pipeline: pnpm version source and registry login whitespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm/action-setup reads the version from package.json packageManager — the explicit `version: 11` input made it fail on the mismatch. The registry login now strips whitespace from the stored token before docker login (the secret carried a trailing newline). Part of #8 Co-Authored-By: Claude Fable 5 --- .gitea/workflows/cd.yml | 6 ++---- .gitea/workflows/ci.yml | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/cd.yml b/.gitea/workflows/cd.yml index 41af8c9..780ab32 100644 --- a/.gitea/workflows/cd.yml +++ b/.gitea/workflows/cd.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Log in to the Gitea registry - run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.101010.cloud -u fable-5 --password-stdin + run: printf '%s' "${{ secrets.REGISTRY_TOKEN }}" | tr -d '[:space:]' | docker login gitea.101010.cloud -u fable-5 --password-stdin # Tags: the immutable SHA (promotion + rollback target) and the # moving `test` tag that the Test stage's compose file pulls. @@ -68,8 +68,6 @@ jobs: - name: Set up pnpm uses: pnpm/action-setup@v4 - with: - version: 11 - name: Set up Node.js uses: actions/setup-node@v4 @@ -101,7 +99,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Log in to the Gitea registry - run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.101010.cloud -u fable-5 --password-stdin + run: printf '%s' "${{ secrets.REGISTRY_TOKEN }}" | tr -d '[:space:]' | docker login gitea.101010.cloud -u fable-5 --password-stdin # Registry-side retag of the SHA images that just passed on Test — # Int always runs bit-identical images, never a rebuild. diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7082dcd..0f45217 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -22,8 +22,6 @@ jobs: - name: Set up pnpm uses: pnpm/action-setup@v4 - with: - version: 11 - name: Set up Node.js uses: actions/setup-node@v4