image: node:12 cache: key: ${CI_COMMIT_SHA}_node_modules untracked: true paths: - node_modules/ policy: pull-push stages: - prepare - build - deploy install_dependencies: stage: prepare script: - yarn install --frozen-lockfile build_code: stage: build only: - dev - beta - production environment: $CI_COMMIT_BRANCH script: - yarn run build artifacts: name: "${CI_COMMIT_SHA}_build" untracked: true paths: - build/ expire_in: 3 hrs