| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,19 +20,18 @@ jobs: | |||
| 20 | 20 | with: | |
| 21 | 21 | node-version: "12" | |
| 22 | 22 | ||
| 23 | - - name: Get yarn cache directory path | ||
| 24 | - id: yarn-cache-dir-path | ||
| 25 | - run: echo "::set-output name=dir::$(yarn cache dir)" | ||
| 26 | - - uses: actions/cache@v2.1.4 | ||
| 27 | - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
| 23 | + - name: Cache node_modules | ||
| 24 | + uses: actions/cache@v2.1.4 | ||
| 25 | + id: cached-node_modules | ||
| 28 | 26 | with: | |
| 29 | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
| 30 | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
| 31 | - restore-keys: | | ||
| 32 | - ${{ runner.os }}-yarn- | ||
| 27 | + path: | | ||
| 28 | + node_modules | ||
| 29 | + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
| 33 | 30 | ||
| 34 | 31 | - name: Install all yarn packages | |
| 35 | - run: yarn --frozen-lockfile | ||
| 32 | + if: steps.cached-node_modules.outputs.cache-hit != 'true' | ||
| 33 | + run: | | ||
| 34 | + yarn --frozen-lockfile | ||
| 36 | 35 | ||
| 37 | 36 | - name: Check redirects file(s) | |
| 38 | 37 | run: yarn content validate-redirects en-us --strict | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,19 +19,18 @@ jobs: | |||
| 19 | 19 | with: | |
| 20 | 20 | node-version: "12" | |
| 21 | 21 | ||
| 22 | - - name: Get yarn cache directory path | ||
| 23 | - id: yarn-cache-dir-path | ||
| 24 | - run: echo "::set-output name=dir::$(yarn cache dir)" | ||
| 25 | - - uses: actions/cache@v2.1.4 | ||
| 26 | - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
| 22 | + - name: Cache node_modules | ||
| 23 | + uses: actions/cache@v2.1.4 | ||
| 24 | + id: cached-node_modules | ||
| 27 | 25 | with: | |
| 28 | - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
| 29 | - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
| 30 | - restore-keys: | | ||
| 31 | - ${{ runner.os }}-yarn- | ||
| 26 | + path: | | ||
| 27 | + node_modules | ||
| 28 | + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
| 32 | 29 | ||
| 33 | 30 | - name: Install all yarn packages | |
| 34 | - run: yarn --frozen-lockfile | ||
| 31 | + if: steps.cached-node_modules.outputs.cache-hit != 'true' | ||
| 32 | + run: | | ||
| 33 | + yarn --frozen-lockfile | ||
| 35 | 34 | ||
| 36 | 35 | - name: Start the Yari server | |
| 37 | 36 | run: | | |
| Back | FazBrowse Home | New Git URL |
0 commit comments