From 5c65167e4507da23a41cb6de7ff1810914cd36d7 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Wed, 1 Nov 2023 18:03:10 +0100
Subject: [PATCH] chore: update release process

---
 devenv.nix | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/devenv.nix b/devenv.nix
index aa005834d..d4dd371f0 100644
--- a/devenv.nix
+++ b/devenv.nix
@@ -148,7 +148,7 @@ if ! git commit -m "chore: release and publish to npm new version $NEXTVERSION"
   exit 1
 fi
 
-cd ''${BUILD_PATH}
+cd ''${BUILD_PATH} || exit 1
 
 OPTIONS=""
 if [ ! -f "${config.devenv.root}/.npmrc" ]; then
@@ -160,11 +160,10 @@ if [ ! -f "${config.devenv.root}/.npmrc" ]; then
   OPTIONS="--dry-run --no-git-checks"
 fi
 
-pnpm publish $OPTIONS --dry-run --access public
+pnpm publish $OPTIONS --access public
 exitcode=$?
-cd -
+cd - || exit 1
 
-set -x
 if [ -n "$OPTIONS" ] || [ $exitcode -ne 0 ]; then
   
   ## reset to last version
-- 
GitLab