ci: publish package to Gitea registry
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user