From cde0fa5f42e066e10fa3944d5368d9c989b0a334 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Thu, 26 Mar 2020 11:01:35 -0700 Subject: [PATCH] update PR script --- .scripts/verify-pull-request.yaml | 24 +++++++++++++++++++++++- modelerfour/package.json | 4 ++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.scripts/verify-pull-request.yaml b/.scripts/verify-pull-request.yaml index 02ec56a..1bb4aca 100644 --- a/.scripts/verify-pull-request.yaml +++ b/.scripts/verify-pull-request.yaml @@ -14,7 +14,7 @@ steps: inputs: versionSpec: '10.x' displayName: 'Install Node.js' - + - script: | npm install -g npm npm cache clear --force @@ -26,8 +26,30 @@ steps: npx @microsoft/rush test rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi + # set the actual package versions + npx @microsoft/rush set-versions + rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi + + npx @microsoft/rush publish --publish --pack --include-all --tag latest + rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi + + v=`node -e "console.log(require('./package.json').version)"` + echo "##vso[task.setvariable variable=artname]v$v" + displayName: 'Rush install, build and test' +- task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Pipeline.Workspace)/common/temp/artifacts/packages' + artifact: '$(artname)' + publishLocation: 'pipeline' + +- task: GitHubComment@0 + inputs: + gitHubConnection: 'Azure' + repositoryName: '$(Build.Repository.Name)' + comment: 'PR pkg created: $(artname)' + - task: UsePythonVersion@0 inputs: versionSpec: '3.x' diff --git a/modelerfour/package.json b/modelerfour/package.json index 9d25e97..92eea35 100644 --- a/modelerfour/package.json +++ b/modelerfour/package.json @@ -54,7 +54,7 @@ "@azure-tools/codegen": "~2.4.0", "@azure-tools/codegen-csharp": "~3.0.0", "@azure-tools/autorest-extension-base": "~3.1.0", - "@azure-tools/codemodel": "~3.6.0", + "@azure-tools/codemodel": "~3.7.0", "@azure-tools/tasks": "~3.0.0", "@azure-tools/openapi": "~3.0.0", "@azure-tools/datastore": "~4.1.0", @@ -69,7 +69,7 @@ "@azure-tools/codegen": "~2.4.0", "@azure-tools/codegen-csharp": "~3.0.0", "@azure-tools/autorest-extension-base": "~3.1.0", - "@azure-tools/codemodel": "~3.6.0", + "@azure-tools/codemodel": "~3.7.0", "@azure-tools/tasks": "~3.0.0", "@azure-tools/openapi": "~3.0.0", "@azure-tools/datastore": "~4.1.0",