-
Notifications
You must be signed in to change notification settings - Fork 407
40 lines (38 loc) · 1000 Bytes
/
cache-node-modules.yml
File metadata and controls
40 lines (38 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
push:
branches:
- develop
- develop-*
- 'epic/**'
- release/*
paths-ignore:
- '**.md'
- 'docs/**'
name: Cache node modules
env:
NODE_VERSION: '20'
CONTINUUM_REGISTRY_TOKEN: ${{ secrets.CONTINUUM_REGISTRY_TOKEN }}
jobs:
cacheNodeModules:
name: Cache node_modules
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Installing root dependencies
run: npm ci
- name: Installing cypress dependencies
working-directory: projects/storefrontapp-e2e-cypress
run: npm ci
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: |
node_modules
projects/storefrontapp-e2e-cypress/node_modules
~/.cache/Cypress
key: nodemodules-${{ github.sha }}