From 03218b604657c26e8874447cb8265c6176d5c0fa Mon Sep 17 00:00:00 2001 From: windychen Date: Fri, 7 Aug 2026 00:48:28 +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 + .npmrc | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 .npmrc diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1657a54..d37f688 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 fb60ea2..92548e8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ storybook-static/ coverage/ *.log .DS_Store +.npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 5fe0511..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=http://verdaccio:4873/