Explorar o código

install dependencies

Yuki Takei %!s(int64=4) %!d(string=hai) anos
pai
achega
55fa6021c5
Modificáronse 1 ficheiros con 16 adicións e 3 borrados
  1. 16 3
      .github/workflows/reusable-app-reg-suit.yml

+ 16 - 3
.github/workflows/reusable-app-reg-suit.yml

@@ -61,11 +61,24 @@ jobs:
         cache: 'yarn'
         cache: 'yarn'
         cache-dependency-path: '**/yarn.lock'
         cache-dependency-path: '**/yarn.lock'
 
 
+    - name: Cache/Restore node_modules
+      uses: actions/cache@v2
+      with:
+        path: |
+          **/node_modules
+        key: node_modules-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
+        restore-keys: |
+          node_modules-${{ runner.OS }}-node${{ inputs.node-version }}-
+
+    - name: lerna bootstrap
+      run: |
+        npx lerna bootstrap -- --frozen-lockfile
+
     - name: Run reg-suit sync-expected
     - name: Run reg-suit sync-expected
       if: ${{ inputs.run-sync-expected }}
       if: ${{ inputs.run-sync-expected }}
       working-directory: ./packages/app
       working-directory: ./packages/app
       run: |
       run: |
-        npx reg-suit sync-expected
+        yarn reg-suit sync-expected
 
 
     - name: Check expected images exist
     - name: Check expected images exist
       if: ${{ inputs.run-sync-expected }}
       if: ${{ inputs.run-sync-expected }}
@@ -84,13 +97,13 @@ jobs:
       if: ${{ inputs.run-compare }}
       if: ${{ inputs.run-compare }}
       working-directory: ./packages/app
       working-directory: ./packages/app
       run: |
       run: |
-        npx reg-suit compare
+        yarn reg-suit compare
 
 
     - name: Run reg-suit publish
     - name: Run reg-suit publish
       if: ${{ inputs.run-publish }}
       if: ${{ inputs.run-publish }}
       working-directory: ./packages/app
       working-directory: ./packages/app
       run: |
       run: |
-        npx reg-suit publish -n
+        yarn reg-suit publish -n
 
 
     - name: Slack Notification
     - name: Slack Notification
       uses: weseek/ghaction-slack-notification@master
       uses: weseek/ghaction-slack-notification@master