Skip to content

Commit 0b9c2d0

Browse files
committed
chore(devops): pass OTP to scripts
1 parent 8cf3667 commit 0b9c2d0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tooling/devops-cleanup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
DEV_TAG=$1
4+
OTP=$2
45
PACKAGE="sf-git-merge-driver"
56

6-
npm view "${PACKAGE}" versions --json | jq -r '.[]' | grep "\\-${DEV_TAG}\\." | xargs -I {} npm deprecate "${PACKAGE}@{}" "Deprecated dev version"
7-
npm dist-tag rm "${PACKAGE}" "${DEV_TAG}"
7+
npm view "${PACKAGE}" versions --json | jq -r '.[]' | grep "\\-${DEV_TAG}\\." | xargs -I {} npm deprecate "${PACKAGE}@{}" "Deprecated dev version" --otp="${OTP}"
8+
npm dist-tag rm "${PACKAGE}" "${DEV_TAG}" --otp="${OTP}"

tooling/devops-movetag.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
VERSION=$1
44
TAG=$2
5+
OTP=$3
56
PACKAGE="sf-git-merge-driver"
67

7-
npm dist-tag add "${PACKAGE}@${VERSION}" "${TAG}"
8+
npm dist-tag add "${PACKAGE}@${VERSION}" "${TAG}" --otp="${OTP}"

0 commit comments

Comments
 (0)