fix: properly dispose RxJS subscriptions to prevent memory leaks (#6896)

This commit is contained in:
白熱
2026-05-13 22:05:45 +08:00
committed by GitHub
parent 7f53a7edd3
commit 630c3242de
11 changed files with 89 additions and 79 deletions
+12 -9
View File
@@ -33,12 +33,14 @@ jobs:
- name: 🚚 Get release type
id: release-type
env:
REF_NAME: ${{ github.ref_name }}
run: |
if [[ ${{ github.ref_name }} =~ -(alpha|beta|rc)\. ]]; then
if [[ "$REF_NAME" =~ -(alpha|beta|rc)\. ]]; then
extracted_type="${BASH_REMATCH[1]}"
echo "value=$extracted_type" >> $GITHUB_OUTPUT
echo "value=$extracted_type" >> "$GITHUB_OUTPUT"
else
echo "value=stable" >> $GITHUB_OUTPUT
echo "value=stable" >> "$GITHUB_OUTPUT"
fi
release-npm:
@@ -73,12 +75,13 @@ jobs:
pnpm build
- name: 🐙 Publish
run: |
if [[ ${{ needs.prepare.outputs.release_type }} == "stable" ]]; then
pnpm publish --access public -r --no-git-checks
else
pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r --no-git-checks
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
RELEASE_TYPE: ${{ needs.prepare.outputs.release_type }}
run: |
if [[ "$RELEASE_TYPE" == "stable" ]]; then
pnpm publish --access public -r --no-git-checks
else
pnpm publish --access public --tag "$RELEASE_TYPE" -r --no-git-checks
fi