Skip to content

Commit 33d4a68

Browse files
committed
don't check config first
1 parent 87f7adc commit 33d4a68

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.ado/jobs/npm-publish.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,7 @@ jobs:
7777
condition: and(succeeded(), eq(variables['publish_react_native_macos'], '1'))
7878
7979
- script: |
80-
# Check and unset npmAuthToken if it exists
81-
if [ "$(yarn config npmAuthToken --json | jq -r '.effective')" != "null" ]; then
82-
yarn config unset npmAuthToken
83-
fi
84-
# Check and unset npmPublishRegistry if it exists
85-
if [ "$(yarn config npmPublishRegistry --json | jq -r '.effective')" != "null" ]; then
86-
yarn config unset npmPublishRegistry
87-
fi
80+
yarn config unset npmAuthToken
81+
yarn config unset npmPublishRegistry
8882
displayName: Unset npm configuration
8983
condition: always()

0 commit comments

Comments
 (0)