-
Notifications
You must be signed in to change notification settings - Fork 33
/
publish.yml
52 lines (41 loc) · 1.54 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
trigger:
- main
extends:
template: /eng/pipelines/templates/stages/1es-redirect.yml
parameters:
stages:
- stage: Release
variables:
- template: /eng/pipelines/templates/variables/image.yml
jobs:
- job: Release
pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux
steps:
- script: |
corepack enable
corepack prepare pnpm --activate
displayName: Install pnpm
- script: pnpm install
displayName: Install dependencies
- script: pnpm run build
displayName: Build
- script: ls ./packages/cadl-ranch-specs/node_modules/.bin
displayName: Test LS
- script: pnpm run validate-scenarios --debug
displayName: Validate Scenarios
- script: pnpm run validate-scenarios --debug
displayName: Validate mock apis
- script: |
pnpm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)
pnpm -r publish --access public --no-git-checks
displayName: Publish packages
- task: AzureCLI@2
displayName: Upload scenario manifest
inputs:
azureSubscription: "Cadl Ranch Storage"
scriptType: "bash"
scriptLocation: "inlineScript"
inlineScript: "pnpm upload-manifest"