From 21d4c4cb718180df6041867bdd1d253990f1f989 Mon Sep 17 00:00:00 2001 From: db123 Date: Tue, 12 May 2026 19:01:10 +0330 Subject: [PATCH] fix(ci): fixed some general issues --- .github/workflows/ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e299f54..ed6e927 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,12 +46,11 @@ jobs: - name: Check formatting run: npm run format:check - # - name: Run tests - # run: npm test + # - name: Run tests + # run: npm test - name: Build npm package - run: | - npm run build + run: npm run build - name: Publish to Gitea npm registry if: success() @@ -62,7 +61,9 @@ jobs: HOST="${GITHUB_SERVER_URL#https://}" OWNER="${GITHUB_REPOSITORY_OWNER}" - npm config set @${OWNER}:registry=https://${HOST}/api/packages/${OWNER}/npm - npm config set -- "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${G_TOKEN}" + npm config set "@${OWNER}:registry" "https://${HOST}/api/packages/${OWNER}/npm/" + npm config set "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${G_TOKEN}" + + npm config set "//${HOST}/api/packages/npm/:_authToken" "${G_TOKEN}" npm publish --ignore-scripts