Skip to content

Commit 008d768

Browse files
authored
feat: use branch as cache_prefix for install_node_modules during build (IN-3373) (#369)
## Description **Root Issue**: getting an outdated version of node_modules during install_and_build **Solution**: attempting to add the branch as the cache_prefix to further separate master from dev branches
1 parent 7664ebd commit 008d768

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jobs/yarn/install_and_build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ parameters:
5353
type: string
5454
default: "168387678261.dkr.ecr.us-east-1.amazonaws.com/ci-node-build-image:v1"
5555
force_execute:
56-
description: '[DEPRECATED] no effect, kept for backward compatibility'
56+
description: "[DEPRECATED] no effect, kept for backward compatibility"
5757
type: boolean
5858
default: false
5959
attach_workspace:
@@ -115,6 +115,7 @@ steps:
115115
language: "<< parameters.language >>"
116116
container_image: "<< parameters.container_image_to_build >>"
117117
run_in_container: "<< parameters.run_install_node_modules_in_container >>"
118+
cache_prefix: "<< parameters.cache_branch >>"
118119

119120
- monorepo_restore_cache:
120121
package: << parameters.package >>

0 commit comments

Comments
 (0)