From 606bf7d19e91d8f89c5f586e5f6bfb3b839bbb6d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 7 Jan 2023 13:01:53 -0600 Subject: [PATCH] Pass the `--otp` code when publishing --- tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index a6dd483..1e8474c 100644 --- a/tasks.py +++ b/tasks.py @@ -13,4 +13,5 @@ def release(c): """ c.run("find . -name '*~' -delete") c.run('npm run build') - c.run('npm publish') + otp = c.run('otp npm').stdout.strip() + c.run('npm publish --otp {}'.format(otp))