From 3105f9c47391610ae44a3c1a572f7d292a562a86 Mon Sep 17 00:00:00 2001 From: Perreal Guillaume <guillaume.perreal@irstea.fr> Date: Wed, 9 Oct 2019 12:14:32 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20syst=C3=A8me=20de?= =?UTF-8?q?=20publication.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 26 ++++++++++++++++---------- package.json | 6 ------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95ab1b5..dadb237 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,20 @@ -stages: - - deploy +include: + - project: pole-is/tools/ci-config + ref: "1.5.0" + file: /nodejs-ci.yml -before_script: - - npm install +stages: + - vendor + - test + - publish -publish: - stage: deploy - tags: [docker] - image: node:lts-alpine +npm:publish: + extends: .nodejs + stage: publish only: - - tags + refs: + - tags + before_script: + - npm config set '//registry.npmjs.org/:_authToken' "$NPM_AUTH_TOKEN" script: - - npm run ci-publish + - npm publish --access=public . diff --git a/package.json b/package.json index 72c981e..150cb07 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,6 @@ "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": { "codelyzer": "^5.0.0", "prettier": "^1.15.0", -- GitLab