diff --git a/.github/workflows/_reusable-eng-tools-test.yaml b/.github/workflows/_reusable-eng-tools-test.yaml index d568b029d71f..ed0e73c10d45 100644 --- a/.github/workflows/_reusable-eng-tools-test.yaml +++ b/.github/workflows/_reusable-eng-tools-test.yaml @@ -50,7 +50,7 @@ jobs: with: node-version: ${{ matrix.node-version }}.x - - run: npm ci + - run: npm install --no-package-lock shell: pwsh - run: npm ls -a diff --git a/eng/pipelines/templates/steps/npm-install.yml b/eng/pipelines/templates/steps/npm-install.yml index 928e88ee9b31..3d9275c54852 100644 --- a/eng/pipelines/templates/steps/npm-install.yml +++ b/eng/pipelines/templates/steps/npm-install.yml @@ -11,8 +11,8 @@ steps: - script: npm --version --loglevel info displayName: npm --version - - script: npm ci - displayName: npm ci + - script: npm install --no-package-lock + displayName: npm install --no-package-lock - script: npm ls -a displayName: npm ls -a diff --git a/eng/pipelines/typespec-validation-all.yml b/eng/pipelines/typespec-validation-all.yml index 9354cc45d7f3..65f9abfeb180 100644 --- a/eng/pipelines/typespec-validation-all.yml +++ b/eng/pipelines/typespec-validation-all.yml @@ -53,6 +53,9 @@ jobs: vmImage: $(OSVmImage) steps: + - script: git -c user.name="azure-sdk" -c user.email="azuresdk@microsoft.com" merge -Xours origin/main + displayName: git merge origin/main + - template: /eng/pipelines/templates/steps/npm-install.yml - pwsh: | diff --git a/eng/pipelines/typespec-validation.yml b/eng/pipelines/typespec-validation.yml index 59729ce5b1f8..03c5267d4df2 100644 --- a/eng/pipelines/typespec-validation.yml +++ b/eng/pipelines/typespec-validation.yml @@ -8,9 +8,12 @@ jobs: vmImage: ubuntu-22.04 steps: + - script: git -c user.name="azure-sdk" -c user.email="azuresdk@microsoft.com" merge -Xours origin/main + displayName: git merge origin/main + - template: /eng/pipelines/templates/steps/npm-install.yml - pwsh: | - $(Build.SourcesDirectory)/eng/scripts/TypeSpec-Validation.ps1 -GitClean -Verbose + $(Build.SourcesDirectory)/eng/scripts/TypeSpec-Validation.ps1 -GitClean -BaseCommitish HEAD~2 -Verbose displayName: Validate Impacted Specs ignoreLASTEXITCODE: true diff --git a/package.json b/package.json index a57e2a376466..f5ae33a94be4 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,19 @@ { "name": "azure-rest-api-specs", "devDependencies": { - "@azure-tools/typespec-apiview": "0.4.9", - "@azure-tools/typespec-autorest": "0.44.0", - "@azure-tools/typespec-azure-core": "0.44.0", - "@azure-tools/typespec-azure-portal-core": "0.44.0", - "@azure-tools/typespec-azure-resource-manager": "0.44.0", - "@azure-tools/typespec-azure-rulesets": "0.44.0", - "@azure-tools/typespec-client-generator-cli": "0.9.3", - "@azure-tools/typespec-client-generator-core": "0.44.0", + "@azure-tools/typespec-autorest": "next", + "@azure-tools/typespec-azure-core": "next", + "@azure-tools/typespec-azure-portal-core": "next", + "@azure-tools/typespec-azure-resource-manager": "next", + "@azure-tools/typespec-client-generator-core": "next", + "@azure-tools/typespec-azure-rulesets": "next", "@azure/avocado": "^0.8.4", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/openapi": "0.58.0", - "@typespec/openapi3": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0", + "@typespec/compiler": "next", + "@typespec/http": "next", + "@typespec/openapi": "next", + "@typespec/openapi3": "next", + "@typespec/rest": "next", + "@typespec/versioning": "next", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.3.7", "prettier": "~3.2.5",