Skip to content

Commit

Permalink
docs(azure): simplify Azure Pipeline example (#25719)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Nov 13, 2023
1 parent 0081b1a commit 2ce4fc5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/modules/platform/azure/readme.md
Expand Up @@ -39,7 +39,7 @@ Replace _all_ content in the starter pipeline with:
```yaml
schedules:
- cron: '0 3 * * *'
displayName: 'Every day at 3am'
displayName: 'Every day at 3am (UTC)'
branches:
include: [main]
always: true
Expand All @@ -59,7 +59,9 @@ steps:
git config --global user.name 'Renovate Bot'
npx --userconfig .npmrc renovate
env:
TOKEN: $(System.AccessToken)
RENOVATE_PLATFORM: azure
RENOVATE_ENDPOINT: $(System.CollectionUri)
RENOVATE_TOKEN: $(System.AccessToken)
```

### Create a .npmrc file
Expand All @@ -79,9 +81,6 @@ Create a `config.js` file in your repository:

```javascript
module.exports = {
platform: 'azure',
endpoint: 'https://dev.azure.com/YOUR-ORG/',
token: process.env.TOKEN,
hostRules: [
{
hostType: 'npm',
Expand All @@ -94,7 +93,6 @@ module.exports = {
};
```

For the `endpoint` key, replace `YOUR-ORG` with your Azure DevOps organization.
For the `repositories` key, replace `YOUR-PROJECT/YOUR-REPO` with your Azure DevOps project and repository.

### Yarn users
Expand All @@ -105,8 +103,6 @@ Use the `matchHost` config option to specify the full path to the registry.
```javascript
module.exports = {
platform: 'azure',
endpoint: 'https://myorg.visualstudio.com/',
token: process.env.TOKEN,
hostRules: [
{
matchHost:
Expand Down

0 comments on commit 2ce4fc5

Please sign in to comment.