Skip to content

Commit 00cd156

Browse files
committed
fix: update dependency installation to avoid workspace lifecycle builds
1 parent e67c08c commit 00cd156

5 files changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/Build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ jobs:
5555
restore-keys: |
5656
${{ runner.os }}-pnpm-store-
5757
- name: "Installing dependencies"
58-
run: pnpm install
58+
# Avoid running workspace lifecycle builds during install; the internal utilities are built once below.
59+
run: pnpm install --frozen-lockfile --ignore-scripts
60+
- name: "Building internal utilities"
61+
run: pnpm run build:internal-utils
5962
- name: "Running build for development"
6063
run: pnpm -r --filter='!native-widgets' --filter=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/main]'; else echo '**'; fi) run build
6164
env:

.github/workflows/BuildMpk.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
- name: "Setup pnpm"
3939
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
4040
- name: "Installing dependencies"
41-
run: pnpm install
41+
# Avoid running workspace lifecycle builds during install; the internal utilities are built once below.
42+
run: pnpm install --frozen-lockfile --ignore-scripts
43+
- name: "Building internal utilities"
44+
run: pnpm run build:internal-utils
4245
- name: "Bumping version"
4346
id: bump_version
4447
run: |

.github/workflows/MarketplaceRelease.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
- name: "Setup pnpm"
3333
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
3434
- name: "Installing dependencies"
35-
run: pnpm install
35+
# Avoid running workspace lifecycle builds during install; the internal utilities are built once below.
36+
run: pnpm install --frozen-lockfile --ignore-scripts
37+
- name: "Building internal utilities"
38+
run: pnpm run build:internal-utils
3639
- name: "Building native widgets and js actions"
3740
run: pnpm -r run release
3841
- name: "Updating Native Mobile Resources project"

.github/workflows/NativePipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ jobs:
212212
- name: "Setup pnpm"
213213
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
214214
- name: "Install dependencies"
215-
run: pnpm install --frozen-lockfile
215+
# Avoid running workspace lifecycle builds during install; the internal utilities are built once below.
216+
run: pnpm install --frozen-lockfile --ignore-scripts
217+
- name: "Building internal utilities"
218+
run: pnpm run build:internal-utils
216219
- name: "Force rebuild resources"
217220
run: |
218221
# Build JS actions if needed (when js_actions_changed is true OR when workspace explicitly includes them)

.github/workflows/Release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ jobs:
6060
restore-keys: |
6161
${{ runner.os }}-pnpm-store-
6262
- name: "Installing dependencies"
63-
run: pnpm install
63+
# Avoid running workspace lifecycle builds during install; the internal utilities are built once below.
64+
run: pnpm install --frozen-lockfile --ignore-scripts
65+
- name: "Building internal utilities"
66+
run: pnpm run build:internal-utils
6467
- name: "Running release for production"
6568
run: pnpm -r --filter=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/main]'; else echo '**'; fi) run release
6669
env:

0 commit comments

Comments
 (0)