image: node:12 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