Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions common/config/azure-pipelines/templates/install-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ steps:
inputs:
versionSpec: '${{ parameters.NodeMajorVersion }}.x'
displayName: 'Install Node.js ${{ parameters.NodeMajorVersion }}'

- bash: |
cat > "$HOME/.npmrc" <<'EOF'
registry=https://packagefeedproxy.microsoft.io/npm/
EOF
displayName: 'Set user npm registry to packagefeedproxy'
8 changes: 8 additions & 0 deletions common/config/azure-pipelines/templates/pack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
steps:
- template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self
parameters:
Arguments: '--help'
DisplayName: 'Install Rush'

- bash: 'rm -f "$HOME/.npmrc"'
displayName: 'Clear user npmrc for publish'

- template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self
parameters:
Arguments: >
Expand Down
8 changes: 8 additions & 0 deletions common/config/azure-pipelines/templates/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ parameters:
default: $(Build.SourceBranchName)

steps:
- template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self
parameters:
Arguments: '--help'
DisplayName: 'Install Rush'

- bash: 'rm -f "$HOME/.npmrc"'
displayName: 'Clear user npmrc for publish'

- template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self
parameters:
Arguments: >
Expand Down