From 4e87c2009b6595bb2dce4e1aba69ddc73d696827 Mon Sep 17 00:00:00 2001 From: Perreal Guillaume <guillaume.perreal@irstea.fr> Date: Fri, 8 Mar 2019 16:41:43 +0100 Subject: [PATCH] Configuring publishing from CI. --- .gitlab-ci.yml | 15 +++++++++++++++ package.json | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..58dd284 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +stages: + - deploy + +before_script: + - npm install + +publish: + stage: deploy + tags: [docker] + image: node:lts-alpine + only: + - master + - tags + script: + - npm run ci-publish || true diff --git a/package.json b/package.json index 0e1ec94..47514cd 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,12 @@ "author": "Pôle IS Irstea <dsi.poleis@lists.irstea.fr>", "license": "MIT", "main": "tslint.json", + "scripts": { + "ci-publish": "ci-publish" + }, + "devDependencies": { + "ci-publish": "^1.3.1" + }, "peerDependencies": { "prettier": "^1.15.0", "prettier-tslint": "^0.4.2", -- GitLab