fix(ci): publish local package artifact
This commit is contained in:
@@ -141,6 +141,19 @@ jobs:
|
|||||||
grep -Fxq "$required_file" <<< "$package_contents"
|
grep -Fxq "$required_file" <<< "$package_contents"
|
||||||
done
|
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
|
- name: Publish component package
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -155,19 +168,6 @@ jobs:
|
|||||||
ln -sfn "$published_name.sha256" waveform-analysis-latest.tgz.sha256
|
ln -sfn "$published_name.sha256" waveform-analysis-latest.tgz.sha256
|
||||||
fi
|
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
|
- name: Create Gitea release
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user