chore(repo): update agent caching and pnpm version (#19681)
This commit is contained in:
parent
cd66a55fde
commit
a6df94cf6c
@ -15,18 +15,22 @@ env:
|
|||||||
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
|
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
|
||||||
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
|
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
|
||||||
steps:
|
steps:
|
||||||
- name: Git Clone
|
- name: Checkout
|
||||||
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml'
|
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml'
|
||||||
|
|
||||||
- name: Restore cache
|
- name: Cache restore
|
||||||
script: |
|
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/cache/main.yaml'
|
||||||
nxw cache restore {{nxBranch}}-node_modules node_modules
|
env:
|
||||||
nxw cache restore {{nxBranch}}-cypress ~/.cache/Cypress
|
KEY: 'pnpm-lock.yaml'
|
||||||
nxw cache restore {{nxBranch}}-pnpm-store ~/.pnpm-store
|
PATHS: |
|
||||||
|
node_modules
|
||||||
|
~/.cache/Cypress
|
||||||
|
~/.pnpm-store
|
||||||
|
BASE_BRANCH: 'master'
|
||||||
|
|
||||||
- name: Install Pnpm
|
- name: Install Pnpm
|
||||||
script: |
|
script: |
|
||||||
npm install -g @pnpm/exe@8.3.1
|
npm install -g @pnpm/exe@8.7.4
|
||||||
|
|
||||||
- name: Pnpm Install
|
- name: Pnpm Install
|
||||||
script: |
|
script: |
|
||||||
@ -50,9 +54,3 @@ steps:
|
|||||||
script: |
|
script: |
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
npx nx-cloud start-agent
|
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
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user