From bc15df828ddad4be4804d7ff87828c9c8ddd6f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Thu, 21 Apr 2022 00:14:48 +0200 Subject: [PATCH] feat: gitlab-ci --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..5335b6d8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +image: registry.gitlab.com/openstapps/projectmanagement/node + +before_script: + - npm ci + +stages: + - audit + - publish + - deploy + +audit: + stage: audit + script: + - npm audit + allow_failure: true + except: + - schedules + +scheduled-audit: + stage: audit + script: + - npm audit --audit-level=high + only: + - schedules + +package: + tags: + - secrecy + stage: publish + script: + - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc + - npm publish + only: + - /^v[0-9]+\.[0-9]+\.[0-9]+$/