mirror of
https://github.com/dream-num/univer.git
synced 2026-09-19 02:18:42 +08:00
fix: properly dispose RxJS subscriptions to prevent memory leaks (#6896)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user