fix(ci): publish local package artifact
All checks were successful
Package component / package (push) Successful in 3m17s
All checks were successful
Package component / package (push) Successful in 3m17s
This commit is contained in:
@@ -141,6 +141,19 @@ jobs:
|
||||
grep -Fxq "$required_file" <<< "$package_contents"
|
||||
done
|
||||
|
||||
- name: Publish to Gitea npm registry
|
||||
shell: bash
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
source release.env
|
||||
: "${NODE_AUTH_TOKEN:?NPM_PUBLISH_TOKEN is required}"
|
||||
registry_url='https://lqycustomsite.online/api/packages/admin/npm/'
|
||||
package_file="release-assets/waveform-analysis-${PACKAGE_VERSION}.tgz"
|
||||
npm config set -- '//lqycustomsite.online/api/packages/admin/npm/:_authToken' "$NODE_AUTH_TOKEN"
|
||||
npm publish "./$package_file" --registry="$registry_url" --tag "$NPM_DIST_TAG"
|
||||
|
||||
- name: Publish component package
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -155,19 +168,6 @@ jobs:
|
||||
ln -sfn "$published_name.sha256" waveform-analysis-latest.tgz.sha256
|
||||
fi
|
||||
|
||||
- name: Publish to Gitea npm registry
|
||||
shell: bash
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
source release.env
|
||||
: "${NODE_AUTH_TOKEN:?NPM_PUBLISH_TOKEN is required}"
|
||||
registry_url='https://lqycustomsite.online/api/packages/admin/npm/'
|
||||
package_file="release-assets/waveform-analysis-${PACKAGE_VERSION}.tgz"
|
||||
npm config set -- '//lqycustomsite.online/api/packages/admin/npm/:_authToken' "$NODE_AUTH_TOKEN"
|
||||
npm publish "$package_file" --registry="$registry_url" --tag "$NPM_DIST_TAG"
|
||||
|
||||
- name: Create Gitea release
|
||||
shell: bash
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user