From 2f439033d1eb8334c5e95ce19eecde61d0fec590 Mon Sep 17 00:00:00 2001 From: Marius David Wieschollek Date: Sun, 23 May 2021 13:29:19 +0200 Subject: Add deployment Signed-off-by: Marius David Wieschollek --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..13703dd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +stages: + - publishing + +image: node:13-alpine + +Publish Alpha: + stage: publishing + script: + - sed -i -e "s|.BUILD|-alpha.${CI_PIPELINE_ID}|g" ./package.json + - npm publish --tag alpha + environment: + name: Alpha + only: + - master + +Publish Beta: + stage: publishing + script: + - sed -i -e "s|.BUILD|-beta.${CI_PIPELINE_ID}|g" ./package.json + - npm publish --tag beta + environment: + name: Beta + only: + - testing + +Publish Release: + stage: publishing + script: + - sed -i -e "s|.BUILD||g" ./package.json + - npm publish --tag latest + environment: + name: Stable + only: + - stable \ No newline at end of file -- cgit v1.2.3