From 26e0605f38961c2f25d6623c3f35eb449dc0be2b Mon Sep 17 00:00:00 2001
From: Jan Loewe <jan.loewe@ptb.de>
Date: Thu, 29 Jun 2023 08:44:19 +0200
Subject: [PATCH] ci: fix yarnrc for ci

---
 .gitlab-ci.yml | 2 ++
 .yarnrc.yml    | 6 +-----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e22c453..f82b455 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -122,6 +122,8 @@ release_job:
 
 # === Job: Deploy
 # Description: this job creates publishes the package to the gitlab package registry
+# === Variables ===
+# NPM_AUTH_TOKEN: a deploy token with read_package_registry and write_package_registry scopes
 deploy:
   stage: deploy
   needs: ["proxy"]
diff --git a/.yarnrc.yml b/.yarnrc.yml
index 1b2f83f..0c5ea34 100644
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -1,12 +1,8 @@
 nodeLinker: node-modules
 
-npmPublishRegistry: "${CI_API_V4_URL:-https://gitlab1.ptb.de/api/v4}/projects/${CI_PROJECT_ID:-105}/packages/npm/"
-
 npmScopes:
   d-ptb:
+    npmPublishRegistry: "${CI_API_V4_URL:-https://gitlab1.ptb.de/api/v4}/projects/${CI_PROJECT_ID:-105}/packages/npm/"
     npmRegistryServer: "${CI_API_V4_URL:-https://gitlab1.ptb.de/api/v4}/packages/npm/"
-
-npmRegistries:
-  "${CI_API_V4_URL:-https://gitlab1.ptb.de/api/v4}/projects/${CI_PROJECT_ID:-105}/packages/npm/":
     npmAlwaysAuth: true
     npmAuthToken: "${NPM_AUTH_TOKEN:-}"
-- 
GitLab