Skip to content

Commit 2bbf089

Browse files
authored
ci: properly pass NPM auth token secret to script (#2434)
## Summary: I noticed NPM publish failing still. My guess is the second addition of this line to our `.npmrc` is messing it up ## Test Plan: Testing on 0.78 release.
1 parent 67a5476 commit 2bbf089

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,15 @@ steps:
2626
2727
- script: |
2828
git switch $(Build.SourceBranchName)
29-
echo "//registry.npmjs.org/:_authToken=$(NODE_AUTH_TOKEN)" > ~/.npmrc
3029
yarn nx release --skip-publish --verbose
3130
env:
3231
GITHUB_TOKEN: $(githubAuthToken)
3332
displayName: Version Packages and Github Release
3433
condition: and(succeeded(), eq(variables['publish_react_native_macos'], '1'))
3534
3635
- script: |
37-
echo "//registry.npmjs.org/:_authToken=$(NODE_AUTH_TOKEN)" > ~/.npmrc
36+
echo "//registry.npmjs.org/:_authToken=$(npmAuthToken)" > ~/.npmrc
3837
yarn nx release publish --excludeTaskDependencies
39-
env:
40-
NODE_AUTH_TOKEN: $(npmAuthToken)
4138
displayName: Publish packages
4239
condition: and(succeeded(), eq(variables['publish_react_native_macos'], '1'))
4340

0 commit comments

Comments
 (0)