diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-05-23 14:29:19 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-05-23 14:29:19 +0300 |
commit | 2f439033d1eb8334c5e95ce19eecde61d0fec590 (patch) | |
tree | 2ed5372da87c20bbc386e7c83646cc72afeebabd /.gitlab-ci.yml | |
parent | 9c89158a88d59f2dedf9424160a1393b17ff5429 (diff) |
Add deployment
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 34 |
1 files changed, 34 insertions, 0 deletions
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 |