Skip to content

Commit adfd99c

Browse files
committed
ci(0.76): setup npm authentication for publish
1 parent f6e18bb commit adfd99c

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
@@ -21,8 +21,10 @@ steps:
2121
2222
- script: |
2323
git switch $(Build.SourceBranchName)
24+
echo "//registry.npmjs.org/:_authToken=$(NODE_AUTH_TOKEN)" > ~/.npmrc
2425
yarn nx release --skip-publish --verbose
2526
yarn nx release publish --excludeTaskDependencies
27+
rm ~/.npmrc
2628
env:
2729
GITHUB_TOKEN: $(githubAuthToken)
2830
NODE_AUTH_TOKEN: $(npmAuthToken)

0 commit comments

Comments
 (0)