From 933a5a06c070164389e60751f3a2914c1600e83f Mon Sep 17 00:00:00 2001 From: Gitea Automation Date: Tue, 21 Jul 2026 10:26:08 +0800 Subject: [PATCH] ci: publish package to Gitea registry --- .gitea/workflows/package.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/package.yml b/.gitea/workflows/package.yml index 64dc3a7..9496d22 100644 --- a/.gitea/workflows/package.yml +++ b/.gitea/workflows/package.yml @@ -117,3 +117,15 @@ jobs: sha256sum "$published_name" > "$published_name.sha256" ln -sfn "$published_name" waveform-analysis-latest.tgz ln -sfn "$published_name.sha256" waveform-analysis-latest.tgz.sha256 + + - name: Publish to Gitea npm registry + shell: bash + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + run: | + set -euo pipefail + registry_url='https://lqycustomsite.online/api/packages/admin/npm/' + package_file="$(find artifacts -maxdepth 1 -type f -name '*.tgz' -print -quit)" + test -n "$package_file" + npm config set -- '//lqycustomsite.online/api/packages/admin/npm/:_authToken' "$NODE_AUTH_TOKEN" + npm publish "$package_file" --registry="$registry_url"