Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ensure advanced use steps works on windows #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If you want to use your own Azure Active Directory application, it's possible to

```javascript
"scripts": {
"preinstall": "azure-devops-npm-auth --client_id='xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --tenant_id='xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"
"preinstall": "npx azure-devops-npm-auth --client_id=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx --tenant_id=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
...
},
```
Expand Down Expand Up @@ -72,14 +72,14 @@ This will open your default browser where you will need to login to Azure with c
To disable authentication within CI environments add the `--ci` flag which skips authentication when the `TF_BUILD` environment variable is set (which is automatically set in Azure DevOps build pipelines):
```javascript
"scripts": {
"preinstall": "azure-devops-npm-auth --ci"
"preinstall": "npx azure-devops-npm-auth --ci"
...
},
```
It's also possible to specify a custom environment variable:
```javascript
"scripts": {
"preinstall": "azure-devops-npm-auth --ci=MY_CUSTOM_VARIABLE"
"preinstall": "npx azure-devops-npm-auth --ci=MY_CUSTOM_VARIABLE"
...
},
```
Expand All @@ -90,7 +90,7 @@ You can pass in a path to customize the directory to look in for the project's .

```javascript
"scripts": {
"preinstall": "azure-devops-npm-auth --project_base_path=./configs"
"preinstall": "npx azure-devops-npm-auth --project_base_path=./configs"
...
},
```
Expand Down
2 changes: 1 addition & 1 deletion register-azure-devops-npm-auth.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ process {
Write-Host '******************* Summary: start ******************************'
Write-Host "App/Client ID: $($app.appId)"
Write-Host "AD Tenant ID: $tenantId"
Write-Host ("To authenticate to Azure npm feed: azure-devops-npm-auth --client_id='{0}' --tenant_id='{1}'" -f $app.appId, $tenantId) -ForegroundColor Yellow
Write-Host ("To authenticate to Azure npm feed: azure-devops-npm-auth --client_id={0} --tenant_id={1}" -f $app.appId, $tenantId) -ForegroundColor Yellow
Write-Host '******************* Summary: end ********************************'

}
Expand Down