details:   https://code.tryton.org/tools/maintenance/commit/72041d3f9cb3
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Dec 15 21:44:05 2025 +0100
description:
        Set OTP for npm publish via environment variable
diffstat:

 do_major_release |  2 +-
 do_minor_release |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 58b19406854b -r 72041d3f9cb3 do_major_release
--- a/do_major_release  Mon Dec 15 21:42:48 2025 +0100
+++ b/do_major_release  Mon Dec 15 21:44:05 2025 +0100
@@ -142,7 +142,7 @@
 
         if ! ${test}; then
             echo "publish"
-            npm publish
+            npm publish --otp "$($TRYTON_NPM_OTP)"
         fi
 
         echo "sign archive"
diff -r 58b19406854b -r 72041d3f9cb3 do_minor_release
--- a/do_minor_release  Mon Dec 15 21:42:48 2025 +0100
+++ b/do_minor_release  Mon Dec 15 21:44:05 2025 +0100
@@ -109,7 +109,7 @@
 
     if ! ${test}; then
         echo "publish"
-        npm publish
+        npm publish --otp "$($TRYTON_NPM_OTP)"
     fi
 
     echo "sign archive"

Reply via email to