chore(repo): update agent caching and pnpm version (#19681)

This commit is contained in:
Miroslav Jonaš 2023-10-18 18:12:51 +02:00 committed by GitHub
parent cd66a55fde
commit a6df94cf6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,18 +15,22 @@ env:
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
steps:
- name: Git Clone
- name: Checkout
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml'
- name: Restore cache
script: |
nxw cache restore {{nxBranch}}-node_modules node_modules
nxw cache restore {{nxBranch}}-cypress ~/.cache/Cypress
nxw cache restore {{nxBranch}}-pnpm-store ~/.pnpm-store
- name: Cache restore
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/cache/main.yaml'
env:
KEY: 'pnpm-lock.yaml'
PATHS: |
node_modules
~/.cache/Cypress
~/.pnpm-store
BASE_BRANCH: 'master'
- name: Install Pnpm
script: |
npm install -g @pnpm/exe@8.3.1
npm install -g @pnpm/exe@8.7.4
- name: Pnpm Install
script: |
@ -50,9 +54,3 @@ steps:
script: |
source "$HOME/.cargo/env"
npx nx-cloud start-agent
- name: Store to cache
script: |
nxw cache store {{nxBranch}}-node_modules node_modules
nxw cache store {{nxBranch}}-cypress ~/.cache/Cypress
nxw cache store {{nxBranch}}-pnpm-store ~/.pnpm-store