From e9a03113b17de045cdb0d4104234f695e8acd049 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Tue, 17 Oct 2023 14:52:34 +0100 Subject: [PATCH] update github workflow [wip] --- .github/workflows/nx-agents.yml | 72 ++++++++++++++++----------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/nx-agents.yml b/.github/workflows/nx-agents.yml index 14faa054a5..c3d0e24eb1 100644 --- a/.github/workflows/nx-agents.yml +++ b/.github/workflows/nx-agents.yml @@ -139,42 +139,42 @@ jobs: id: pnpm-cache-dir-path run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: Use the node_modules cache if available [pnpm] - if: steps.package_manager.outputs.name == 'pnpm' - uses: actions/cache@v3 - with: - path: ${{ steps.pnpm-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}- - - - name: Get yarn cache directory path [yarn 1.x] - if: steps.package_manager.outputs.name == 'yarn' && startsWith(steps.versions.outputs.yarn_version, '1.') - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - name: Use the node_modules cache if available [yarn 1.x] - if: steps.package_manager.outputs.name == 'yarn' && startsWith(steps.versions.outputs.yarn_version, '1.') - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn- - - - name: Get yarn cache directory path [yarn berry] - if: steps.package_manager.outputs.name == 'yarn' && !startsWith(steps.versions.outputs.yarn_version, '1.') - id: yarn-berry-cache-dir-path - run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - - - name: Use the node_modules cache if available [yarn berry] - if: steps.package_manager.outputs.name == 'yarn' && !startsWith(steps.versions.outputs.yarn_version, '1.') - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-berry-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn-berry-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn-berry- +# - name: Use the node_modules cache if available [pnpm] +# if: steps.package_manager.outputs.name == 'pnpm' +# uses: actions/cache@v3 +# with: +# path: ${{ steps.pnpm-cache-dir-path.outputs.dir }} +# key: ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-${{ hashFiles('**/pnpm-lock.yaml') }} +# restore-keys: | +# ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}- + +# - name: Get yarn cache directory path [yarn 1.x] +# if: steps.package_manager.outputs.name == 'yarn' && startsWith(steps.versions.outputs.yarn_version, '1.') +# id: yarn-cache-dir-path +# run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT +# +# - name: Use the node_modules cache if available [yarn 1.x] +# if: steps.package_manager.outputs.name == 'yarn' && startsWith(steps.versions.outputs.yarn_version, '1.') +# uses: actions/cache@v3 +# with: +# path: ${{ steps.yarn-cache-dir-path.outputs.dir }} +# key: ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn-${{ hashFiles('**/yarn.lock') }} +# restore-keys: | +# ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn- +# +# - name: Get yarn cache directory path [yarn berry] +# if: steps.package_manager.outputs.name == 'yarn' && !startsWith(steps.versions.outputs.yarn_version, '1.') +# id: yarn-berry-cache-dir-path +# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT +# +# - name: Use the node_modules cache if available [yarn berry] +# if: steps.package_manager.outputs.name == 'yarn' && !startsWith(steps.versions.outputs.yarn_version, '1.') +# uses: actions/cache@v3 +# with: +# path: ${{ steps.yarn-berry-cache-dir-path.outputs.dir }} +# key: ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn-berry-${{ hashFiles('**/yarn.lock') }} +# restore-keys: | +# ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-yarn-berry- - name: Process environment-variables if: ${{ inputs.environment-variables != '' }}