Skip to content

Commit

Permalink
chore(repo): update agent caching and pnpm version (#19681)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Oct 18, 2023
1 parent cd66a55 commit a6df94c
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .nx/workflows/agents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

1 comment on commit a6df94c

@vercel
Copy link

@vercel vercel bot commented on a6df94c Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.