Browse Source

Update 'nodejs/.github/workflows/main.yml'

天问 3 years ago
parent
commit
96bc54d76f
1 changed files with 13 additions and 1 deletions
  1. 13 1
      nodejs/.github/workflows/main.yml

+ 13 - 1
nodejs/.github/workflows/main.yml

@@ -38,4 +38,16 @@ jobs:
           path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
           key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
           restore-keys: |
-            ${{ runner.os }}-yarn-
+            ${{ runner.os }}-yarn-
+
+      - name: Install Dependencies
+        if: steps.npm-cache.outputs.cache-hit != 'true'
+        run: npm install
+        
+      - name: Install Dependencies
+        if: steps.yarn-cache.outputs.cache-hit != 'true'
+        run: yarn --frozen-lockfile
+
+      - name: Build
+        run: |
+          yarn build