From 809962e3fd7de77a8d8d3488242f59109282d7f4 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Thu, 20 Jun 2024 19:42:49 +0200
Subject: [PATCH] fix: wip new pipeline

---
 .gitlab-ci.yml         | 68 +++++++++++++++++++++---------------------
 nix/scripts/deploy.nix |  7 +++--
 2 files changed, 38 insertions(+), 37 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ff3298531..309eaadbf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,40 +20,40 @@ before_script:
 after_script:
   - nix develop .#gitlab --command clean-up
 
-tests:
-  stage: test
-  tags:
-    - nixos-gen3
-  script:
-    - nix develop .#gitlab --command run-ci-tests
-  cache:
-    untracked: true
-    key:
-      files:
-        - pnpm-lock.yaml
-    paths:
-      - node_modules/
-  rules:
-    - if: $DEPLOY_VERSION == null
-
-web-tests:
-  stage: test
-  tags:
-    - nixos-gen3
-  script:
-    -  nix develop .#gitlab --command run-ci-web-tests
-  cache:
-    untracked: true
-    key:
-      files:
-        - pnpm-lock.yaml
-    paths:
-      - node_modules/
-  artifacts:
-    paths:
-      - screenshot.png
-  rules:
-    - if: $DEPLOY_VERSION == null
+#tests:
+#  stage: test
+#  tags:
+#    - nixos-gen3
+#  script:
+#    - nix develop .#gitlab --command run-ci-tests
+#  cache:
+#    untracked: true
+#    key:
+#      files:
+#        - pnpm-lock.yaml
+#    paths:
+#      - node_modules/
+#  rules:
+#    - if: $DEPLOY_VERSION == null
+#
+#web-tests:
+#  stage: test
+#  tags:
+#    - nixos-gen3
+#  script:
+#    -  nix develop .#gitlab --command run-ci-web-tests
+#  cache:
+#    untracked: true
+#    key:
+#      files:
+#        - pnpm-lock.yaml
+#    paths:
+#      - node_modules/
+#  artifacts:
+#    paths:
+#      - screenshot.png
+#  rules:
+#    - if: $DEPLOY_VERSION == null
 
 release:
   stage: release
diff --git a/nix/scripts/deploy.nix b/nix/scripts/deploy.nix
index f51113fe6..5a88fdd18 100644
--- a/nix/scripts/deploy.nix
+++ b/nix/scripts/deploy.nix
@@ -13,12 +13,13 @@ in
     
     echo_section "build and publish"
     archive=$(ls ${monster} | grep tgz)
- printenv
+ 
     echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
-    cat .npmrc
+    
+    ls -lah "${monster}/$archive"
  
     ## npm instead of pnpm because of https://github.com/pnpm/pnpm/issues/7950
-    if ! publishingResult=$(${pkgs'.nodejs_20}/bin/npm publish "${monster}/$archive" --json --no-git-checks --access public)
+    if ! publishingResult=$(${pkgs'.nodejs_20}/bin/npm publish "${monster}/$archive" --no-git-checks --access public)
     then
       if [ -f .npmrc ] ; then rm .npmrc ; fi
       echo_fail "Failed to publish the project."
-- 
GitLab