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
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://pkgs.dev.azure.com/azfunc/public/_packaging/upstream-public/npm/registry/
@azure:registry=https://pkgs.dev.azure.com/azfunc/public/_packaging/upstream-public/npm/registry/
4 changes: 4 additions & 0 deletions azure-pipelines/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
inputs:
versionSpec: 20.x
displayName: 'Install Node.js'
- task: npmAuthenticate@0
displayName: 'Authenticate to Central Feed Service'
inputs:
workingFile: '$(Build.SourcesDirectory)/.npmrc'
- script: npm ci
displayName: 'npm ci'
- script: npm audit --production
Expand Down
5 changes: 5 additions & 0 deletions azure-pipelines/templates/npm-publish-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ steps:
inputs:
versionSpec: 18.x

- task: npmAuthenticate@0
displayName: 'Authenticate to Central Feed Service'
inputs:
workingFile: '$(Build.SourcesDirectory)/.npmrc'

- script: npm ci
displayName: 'npm ci'

Expand Down
4 changes: 4 additions & 0 deletions azure-pipelines/templates/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
inputs:
versionSpec: $(NODE_VERSION)
displayName: 'Install Node.js'
- task: npmAuthenticate@0
displayName: 'Authenticate to Central Feed Service'
inputs:
workingFile: '$(Build.SourcesDirectory)/.npmrc'
- script: npm ci
displayName: 'npm ci'
- script: npm run build
Expand Down
Loading