diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8066920aadbf23911fb0c4d7e2a2d58503f18c4..db18e8a017d1dd3895bf6f2b918b9583d63ed1cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - lint - test + - deploy cache: paths: - ~/.cache @@ -50,4 +51,13 @@ jest: coverage_format: cobertura path: coverage/cobertura-coverage.xml - +deploy_staging: + image: node:16.16.0 + stage: deploy + only: + - development + script: + - npm install --global vercel + - vercel pull --yes --environment=preview --token=$VERCEL_TOKEN + - vercel build --token=$VERCEL_TOKEN + - vercel deploy --prebuilt --token=$VERCEL_TOKEN