Skip to content

Commit 657b42f

Browse files
committed
ci(0.77): setup npm authentication for publish
1 parent b8e7789 commit 657b42f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.ado/templates/npm-publish-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ steps:
2626
2727
- script: |
2828
git switch $(Build.SourceBranchName)
29+
echo "//registry.npmjs.org/:_authToken=$(NODE_AUTH_TOKEN)" > ~/.npmrc
2930
yarn nx release --skip-publish --verbose
3031
yarn nx release publish --excludeTaskDependencies
32+
rm ~/.npmrc
3133
env:
3234
GITHUB_TOKEN: $(githubAuthToken)
3335
NODE_AUTH_TOKEN: $(npmAuthToken)

0 commit comments

Comments
 (0)