From 31df060db1c8122b3ac321bd0a654447f5f87b16 Mon Sep 17 00:00:00 2001 From: windychen Date: Fri, 7 Aug 2026 00:48:27 +0000 Subject: [PATCH] =?UTF-8?q?fix(ci):=20Verdaccio=20=E6=94=B9=E7=94=A8=20Bas?= =?UTF-8?q?ic=20Auth=20secrets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .gitea/workflows/build.yaml | 3 ++- .gitignore | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4e377ee..b8b6415 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -22,8 +22,9 @@ jobs: - name: Setup npm for Verdaccio run: | + AUTH_B64=$(printf '%s' "${{ secrets.VERDACCIO_USER }}:${{ secrets.VERDACCIO_PASSWORD }}" | base64 | tr -d '\n') npm config set registry http://verdaccio:4873/ - npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }} + npm config set //verdaccio:4873/:_auth "$AUTH_B64" - name: Install dependencies run: npm i --registry http://verdaccio:4873/ diff --git a/.gitignore b/.gitignore index 612c939..673e7d7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ coverage/ *.log .DS_Store +.npmrc