From ff199027e7daaa62280377638567004d67db4828 Mon Sep 17 00:00:00 2001 From: hoonoh Date: Tue, 29 Oct 2019 20:43:05 +0900 Subject: [PATCH] fix: fix npm dist-tag 401 error (#21) --- .azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 63e82a17..24302538 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -20,6 +20,7 @@ jobs: - bash: | echo "##vso[task.setvariable variable=PACKAGE_VERSION]$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" echo "##vso[task.setvariable variable=CURRENT_GIT_TAG]$(git describe --tags | tr -d '[:space:]')" + echo "//registry.npmjs.org/:_authToken=$(NPM_TOKEN)" >> .npmrc - script: npm dist-tag add aws-spot-price@$(PACKAGE_VERSION) $(CURRENT_GIT_TAG) displayName: "NPM dist-tag $(CURRENT_GIT_TAG)" env: