Skip to content

Commit 18099d2

Browse files
committed
prettier
1 parent b6f4f4c commit 18099d2

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

build/templates/setup.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,39 +28,39 @@ steps:
2828
displayName: 🛠 Install Node ${{ parameters.nodeVersion }}
2929

3030
- ${{ if ne(parameters.customNPMRegistry, '') }}:
31-
# When using a private/custom registry, configure npm to read auth/config from a temp user config
32-
# instead of relying on a checked-in project .npmrc.
33-
- pwsh: >
34-
$(Build.SourcesDirectory)/build/scripts/ensure-npm-userconfig.ps1
35-
-Path "${{ parameters.npmrcPath }}"
36-
-Registry "${{ parameters.customNPMRegistry }}"
37-
displayName: 📦 Setup NPM User Config
31+
# When using a private/custom registry, configure npm to read auth/config from a temp user config
32+
# instead of relying on a checked-in project .npmrc.
33+
- pwsh: >
34+
$(Build.SourcesDirectory)/build/scripts/ensure-npm-userconfig.ps1
35+
-Path "${{ parameters.npmrcPath }}"
36+
-Registry "${{ parameters.customNPMRegistry }}"
37+
displayName: 📦 Setup NPM User Config
3838
39-
# Configure npm/yarn to use the custom registry and ensure auth headers are sent.
40-
- pwsh: >
41-
$(Build.SourcesDirectory)/build/scripts/setup-npm-and-yarn.ps1
42-
-NpmrcPath "${{ parameters.npmrcPath }}"
43-
-Registry "${{ parameters.customNPMRegistry }}"
44-
displayName: 📦 Setup NPM & Yarn
39+
# Configure npm/yarn to use the custom registry and ensure auth headers are sent.
40+
- pwsh: >
41+
$(Build.SourcesDirectory)/build/scripts/setup-npm-and-yarn.ps1
42+
-NpmrcPath "${{ parameters.npmrcPath }}"
43+
-Registry "${{ parameters.customNPMRegistry }}"
44+
displayName: 📦 Setup NPM & Yarn
4545
46-
# Populate the temp .npmrc with auth for the configured registry.
47-
- task: npmAuthenticate@0
48-
inputs:
49-
workingFile: ${{ parameters.npmrcPath }}
50-
displayName: 📦 Setup NPM Authentication
46+
# Populate the temp .npmrc with auth for the configured registry.
47+
- task: npmAuthenticate@0
48+
inputs:
49+
workingFile: ${{ parameters.npmrcPath }}
50+
displayName: 📦 Setup NPM Authentication
5151

52-
# Ensure the registry always sends auth headers (npmAuthenticate may overwrite the file).
53-
- pwsh: >
54-
$(Build.SourcesDirectory)/build/scripts/finalize-npm-config.ps1
55-
-Path "${{ parameters.npmrcPath }}"
56-
displayName: 📦 Finalize NPM config
52+
# Ensure the registry always sends auth headers (npmAuthenticate may overwrite the file).
53+
- pwsh: >
54+
$(Build.SourcesDirectory)/build/scripts/finalize-npm-config.ps1
55+
-Path "${{ parameters.npmrcPath }}"
56+
displayName: 📦 Finalize NPM config
5757
58-
# Some lockfiles contain hardcoded references to public registries. Rewrite them so installs
59-
# and `npx` resolve from the custom registry consistently.
60-
- pwsh: >
61-
$(Build.SourcesDirectory)/build/scripts/setup-npm-registry.ps1
62-
-Registry "${{ parameters.customNPMRegistry }}"
63-
displayName: 📦 Setup NPM Registry
58+
# Some lockfiles contain hardcoded references to public registries. Rewrite them so installs
59+
# and `npx` resolve from the custom registry consistently.
60+
- pwsh: >
61+
$(Build.SourcesDirectory)/build/scripts/setup-npm-registry.ps1
62+
-Registry "${{ parameters.customNPMRegistry }}"
63+
displayName: 📦 Setup NPM Registry
6464
6565
- script: npm config get registry
6666
displayName: Verify NPM Registry

0 commit comments

Comments
 (0)