image: node:latest variables: GIT_STRATEGY: clone GIT_AUTHOR_NAME: Skunk Bot GIT_AUTHOR_EMAIL: skunkbot@goodgamestudios.com GIT_COMMITTER_NAME: Skunk Bot GIT_COMMITTER_EMAIL: skunkbot@goodgamestudios.com stages: - test - staging - production - synchronize cache: paths: - node_modules/ before_script: - npm ci test1: image: buildkite/puppeteer stage: test tags: - cxf script: - npm run lint - npm run test publish-to-qa: stage: staging tags: - cxf script: - npm run build:staging - npm run release only: - qa publish-to-latest: stage: production tags: - cxf script: - npm run build:LIVE - npm run release only: - master merge-master-to-qa: stage: synchronize before_script: - '' tags: - cxf script: - git fetch - git checkout -b qa --track origin/qa - git merge origin/master - git push https://gitlab-ci-token:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git HEAD:qa only: - master