Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .ado/templates/npm-publish-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,24 @@ steps:

- script: |
git switch $(Build.SourceBranchName)
echo "//registry.npmjs.org/:_authToken=$(NODE_AUTH_TOKEN)" > ~/.npmrc
yarn nx release --skip-publish --verbose
yarn nx release publish --excludeTaskDependencies
env:
GITHUB_TOKEN: $(githubAuthToken)
displayName: Version Packages and Github Release
condition: and(succeeded(), eq(variables['publish_react_native_macos'], '1'))

- script: |
echo "//registry.npmjs.org/:_authToken=$(NODE_AUTH_TOKEN)" > ~/.npmrc
yarn nx release publish --excludeTaskDependencies
env:
NODE_AUTH_TOKEN: $(npmAuthToken)
displayName: Version and publish packages
displayName: Publish packages
condition: and(succeeded(), eq(variables['publish_react_native_macos'], '1'))

- script: |
rm -f ~/.npmrc
env:
NODE_AUTH_TOKEN: $(npmAuthToken)
Comment on lines +46 to +47
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step doesn't need the token

displayName: Remove npmrc if it exists
condition: always()
Loading