Skip to content
Merged
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
20 changes: 2 additions & 18 deletions build/azure-pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,6 @@ extends:
version: "22.x"
displayName: "Install Node.js"

- script: |
set -euo pipefail
cat > .npmrc << 'EOF'
registry=https://pkgs.dev.azure.com/devdiv/devdiv/_packaging/devdiv_PublicPackages/npm/registry/
EOF
displayName: "Set up .npmrc"

- task: npmAuthenticate@0
inputs:
workingFile: .npmrc
displayName: "Authenticate npm"

- script: npm install
displayName: "Install dependencies"

- script: node ./test/runTests.js
displayName: "Run tests"

- script: |
set -euo pipefail

Expand Down Expand Up @@ -137,6 +119,8 @@ extends:
echo "##vso[build.updatebuildnumber]$(Build.BuildNumber)-release.$package_version"
name: publishCheck
displayName: "Check tag and pack npm package"
env:
NPM_CONFIG_REGISTRY: https://packagefeedproxy.microsoft.io/npm/

- stage: Publish
displayName: Publish to npmjs
Expand Down
Loading