stages:
  - install
  - build

cache:
  paths:
    - node_modules/
  key: "$CI_BUILD_REF_NAME" # Separate cache for each branch

install_dependencies:
  stage: install
  image: node:latest
  script:
    - npm install

build_project:
  stage: build
  image: node:latest
  script:
    - npm run build