From f37e6e8c3cb1c1ce9d5ccd1c7002a720b2bd6d66 Mon Sep 17 00:00:00 2001 From: Xuefei Li Date: Thu, 26 Feb 2026 16:20:16 +0800 Subject: [PATCH] Refactor release workflow to simplify NODE_OPTIONS Removed unused environment variable RUSH_NODE_OPTIONS and set NODE_OPTIONS directly in build steps. --- .github/workflows/release.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f44b49e69..f3658441d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release CI (scheme A - changelog-first) +name: Release CI on: push: @@ -26,9 +26,6 @@ jobs: group: vchart-release-${{ github.ref_name }} cancel-in-progress: false - env: - RUSH_NODE_OPTIONS: '--max_old_space_size=4096' - steps: - name: Checkout uses: actions/checkout@v4 @@ -297,38 +294,38 @@ jobs: - name: Build vutils-extension && vchart env: - NODE_OPTIONS: ${{ env.RUSH_NODE_OPTIONS }} + NODE_OPTIONS: '--max_old_space_size=4096' run: node common/scripts/install-run-rush.js build --to @visactor/vchart - name: Build vchart-extension if: startsWith(github.ref_name, 'release/') || startsWith(github.ref_name, 'pre-release/') env: - NODE_OPTIONS: ${{ env.RUSH_NODE_OPTIONS }} + NODE_OPTIONS: '--max_old_space_size=4096' run: node common/scripts/install-run-rush.js build --only @visactor/vchart-extension - name: Build react-vchart env: - NODE_OPTIONS: ${{ env.RUSH_NODE_OPTIONS }} + NODE_OPTIONS: '--max_old_space_size=4096' run: node common/scripts/install-run-rush.js build --only @visactor/react-vchart - name: Build openinula-vchart env: - NODE_OPTIONS: ${{ env.RUSH_NODE_OPTIONS }} + NODE_OPTIONS: '--max_old_space_size=4096' run: node common/scripts/install-run-rush.js build --only @visactor/openinula-vchart - name: Build taro-vchart env: - NODE_OPTIONS: ${{ env.RUSH_NODE_OPTIONS }} + NODE_OPTIONS: '--max_old_space_size=4096' run: node common/scripts/install-run-rush.js build --only @visactor/taro-vchart - name: Build lark-vchart env: - NODE_OPTIONS: ${{ env.RUSH_NODE_OPTIONS }} + NODE_OPTIONS: '--max_old_space_size=4096' run: node common/scripts/install-run-rush.js build --only @visactor/lark-vchart - name: Build wx-vchart env: - NODE_OPTIONS: ${{ env.RUSH_NODE_OPTIONS }} + NODE_OPTIONS: '--max_old_space_size=4096' run: node common/scripts/install-run-rush.js build --only @visactor/wx-vchart - name: Publish to npm (release)