From 407f87e99e2f9e58198719aac6bafd38a604dcd3 Mon Sep 17 00:00:00 2001
From: erwan <erwan.jahier@univ-grenoble-alpes.fr>
Date: Thu, 8 Jul 2021 15:16:31 +0200
Subject: [PATCH] Chore: more trials to fix semantics-release

---
 .gitlab-ci.yml | 22 ++++++++++++++++++----
 package.json   |  2 +-
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 12f9122..dc5e5ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,16 +38,30 @@ release:
     - apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
     - npm install -g semantic-release @semantic-release/gitlab
   script:
-    - semantic-release  --token ${GITLAB_AUTH_TOKEN}
+    - semantic-release -p ['@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', '@semantic-release/npm', '@semantic-release/gitlab']
   only:
     - master
 
-.old_release:
+old_release:
   before_script:
     - yarn install --frozen-lockfile
-  image: node:12
+    - yarn add ${CI_REPOSITORY_URL}#${CI_COMMIT_SHA}
+    - yarn lint:eslint:all
+  image: node:14
   only:
     - master
   script:
-    - $(yarn bin)/semantic-delivery-gitlab --preset eslint  --token ${GITLAB_AUTH_TOKEN}
+    - $(yarn  bin)/semantic-delivery-gitlab  --preset  eslint  --token ${GITLAB_AUTH_TOKEN}
+  stage: release
+
+new_release:
+  before_script:
+    - yarn install --frozen-lockfile
+    - yarn add ${CI_REPOSITORY_URL}#${CI_COMMIT_SHA}
+    - yarn lint:eslint:all
+  image: node:14
+  only:
+    - master
+  script:
+    - semantic-release
   stage: release
diff --git a/package.json b/package.json
index 0e0eb91..ff9529e 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,6 @@
   "author": "Erwan Jahier",
   "license": "CeCILL-2.1",
     "devDependencies": {
-        "semantic-release":  "^15.0.0"
+        "semantic-release": "^15.0.0"
   }
 }
-- 
GitLab