@@ -192,17 +192,18 @@ jobs:
192192 uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
193193 with :
194194 node-version-file : .nvmrc
195- cache : yarn
195+ - name : " Setup pnpm"
196+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
196197 - name : " Install dependencies"
197- run : yarn install --immutable
198+ run : pnpm install --frozen-lockfile
198199 - name : " Force rebuild resources"
199200 run : |
200201 # Build JS actions if needed
201202 if [ "${{ github.event.inputs.workspace }}" = "js-actions" ] || \
202203 [ "${{ github.event.inputs.workspace }}" = "*-native" ] || \
203204 [ "${{ github.event_name }}" = "schedule" ]; then
204- yarn workspace mobile-resources-native run build
205- yarn workspace nanoflow-actions-native run build
205+ pnpm --filter= mobile-resources-native run build
206+ pnpm --filter= nanoflow-actions-native run build
206207 fi
207208
208209 # Build widgets if needed (any specific widget, *-native, or nightly)
@@ -211,11 +212,11 @@ jobs:
211212 [ "${{ github.event_name }}" = "schedule" ]; then
212213 widgets=$(echo '${{ needs.scope.outputs.widgets }}' | jq -r '.[]')
213214 for w in $widgets; do
214- yarn workspace $w run build
215+ pnpm --filter= $w run build
215216 done
216217 fi
217218 - name : " Unit test"
218- run : yarn workspaces foreach ${{ needs.scope.outputs.scope }} run test
219+ run : pnpm -r --filter=" ${{ needs.scope.outputs.scope }}" run test
219220 - name : " Upload JS actions resources artifact"
220221 if : ${{ github.event.inputs.workspace == 'js-actions' }}
221222 uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
@@ -478,9 +479,10 @@ jobs:
478479 uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
479480 with :
480481 node-version-file : .nvmrc
481- cache : yarn
482+ - name : " Setup pnpm"
483+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
482484 - name : " Install dependencies"
483- run : yarn install --immutable
485+ run : pnpm install --frozen-lockfile
484486 - name : " Download project MDA file"
485487 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
486488 with :
@@ -599,11 +601,10 @@ jobs:
599601 uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
600602 with :
601603 node-version-file : .nvmrc
602- cache : yarn
604+ - name : " Setup pnpm"
605+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
603606 - name : " Install dependencies"
604- run : |
605- yarn cache clean
606- yarn install --immutable
607+ run : pnpm install --frozen-lockfile
607608 - name : " Download project MDA file"
608609 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
609610 with :
@@ -712,9 +713,10 @@ jobs:
712713 uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
713714 with :
714715 node-version-file : .nvmrc
715- cache : yarn
716+ - name : " Setup pnpm"
717+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
716718 - name : " Install dependencies"
717- run : yarn install --immutable
719+ run : pnpm install --frozen-lockfile
718720 - name : " Download project MDA file"
719721 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
720722 with :
@@ -796,11 +798,10 @@ jobs:
796798 uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
797799 with :
798800 node-version-file : .nvmrc
799- cache : yarn
801+ - name : " Setup pnpm"
802+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
800803 - name : " Install dependencies"
801- run : |
802- yarn cache clean
803- yarn install --immutable
804+ run : pnpm install --frozen-lockfile
804805 - name : " Download project MDA file"
805806 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
806807 with :
@@ -908,10 +909,11 @@ jobs:
908909 uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
909910 with :
910911 node-version-file : .nvmrc
911- cache : yarn
912+ - name : " Setup pnpm"
913+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
912914
913915 - name : " Install dependencies"
914- run : yarn install
916+ run : pnpm install --frozen-lockfile
915917
916918 - name : " Compare Android screenshots"
917919 continue-on-error : true
0 commit comments