|  | 
|  | 1 | +pr: none | 
|  | 2 | +trigger: | 
|  | 3 | +  - main | 
|  | 4 | +variables: | 
|  | 5 | +  - group: InfoSec-SecurityResults | 
|  | 6 | +  - name: tags | 
|  | 7 | +    value: production,externalfacing | 
|  | 8 | +  - name: serviceTreeID | 
|  | 9 | +    value: 21f0b890-e3a8-4c0b-b9e7-2f764f8b799c | 
|  | 10 | + | 
|  | 11 | +resources: | 
|  | 12 | +  repositories: | 
|  | 13 | +    - repository: 1ESPipelineTemplates | 
|  | 14 | +      type: git | 
|  | 15 | +      name: 1ESPipelineTemplates/1ESPipelineTemplates | 
|  | 16 | +      ref: refs/tags/release | 
|  | 17 | + | 
|  | 18 | +extends: | 
|  | 19 | +  template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates | 
|  | 20 | + | 
|  | 21 | +  parameters: | 
|  | 22 | +    sdl: | 
|  | 23 | +      sourceAnalysisPool: | 
|  | 24 | +        name: Azure-Pipelines-1ESPT-ExDShared | 
|  | 25 | +        image: windows-2022 | 
|  | 26 | +        os: windows | 
|  | 27 | +    stages: | 
|  | 28 | +      - stage: release | 
|  | 29 | +        variables: | 
|  | 30 | +          # OPTIONAL: Set this varibale to 'true' to enable signing in a target stage. | 
|  | 31 | +          # Remove if signing is not required. | 
|  | 32 | +          Build.ESRP.CodeSign.Enabled: false | 
|  | 33 | +          # OPTIONAL: To disable required tools not applicable in the pipeline set to false. | 
|  | 34 | +          # Supported values: BinSkim, Roslyn, ESLint, PREFast. | 
|  | 35 | +          Build.SDL.<Roslyn>.Enabled: false | 
|  | 36 | +          Build.SDL.<ESLint>.Enabled: true | 
|  | 37 | +        jobs: | 
|  | 38 | +          - job: Release | 
|  | 39 | +            pool: | 
|  | 40 | +              name: Azure-Pipelines-1ESPT-ExDShared | 
|  | 41 | +              image: ubuntu-latest | 
|  | 42 | +              os: linux | 
|  | 43 | +            steps: | 
|  | 44 | +              - checkout: self | 
|  | 45 | +              - script: yarn --frozen-lockfile | 
|  | 46 | +                displayName: yarn | 
|  | 47 | +              - script: yarn ci-test | 
|  | 48 | +                displayName: build and test [test] | 
|  | 49 | + | 
|  | 50 | +              - task: 1ES.PublishPipelineArtifact@1 | 
|  | 51 | +                displayName: "Publish built package" | 
|  | 52 | +                inputs: | 
|  | 53 | +                  artifactName: package-$(Build.BuildNumber) | 
|  | 54 | +                  targetPath: $(System.DefaultWorkingDirectory)/dist | 
|  | 55 | + | 
|  | 56 | +              - script: | | 
|  | 57 | +                  mkdir -p $(System.DefaultWorkingDirectory)/packages | 
|  | 58 | +                  npm pack --pack-destination $(System.DefaultWorkingDirectory)/packages | 
|  | 59 | +                displayName: "Generate npm package (.tgz)" | 
|  | 60 | +
 | 
|  | 61 | +              # - task: EsrpRelease@9 | 
|  | 62 | +              #   displayName: "ESRP Release to npm" | 
|  | 63 | +              #   inputs: | 
|  | 64 | +              #     connectedservicename: $(Release.ConnectedServiceName) | 
|  | 65 | +              #     usemanagedidentity: true | 
|  | 66 | +              #     keyvaultname: $(Release.KeyVaultName) | 
|  | 67 | +              #     signcertname: $(Release.SignCertName) | 
|  | 68 | +              #     clientid: $(Release.ClientId) | 
|  | 69 | +              #     contenttype: "npm" | 
|  | 70 | +              #     folderlocation: $(System.DefaultWorkingDirectory)/packages | 
|  | 71 | +              #     owners: $(Release.Owners) | 
|  | 72 | +              #     approvers: $(Release.Approvers) | 
|  | 73 | +              #     mainpublisher: ESRPRELPACMAN | 
|  | 74 | +              #     domaintenantid: $(Release.DomainTenantId) | 
|  | 75 | + | 
|  | 76 | +              - task: 1ES.PublishPipelineArtifact@1 | 
|  | 77 | +                displayName: 📒 Publish Manifest | 
|  | 78 | +                inputs: | 
|  | 79 | +                  artifactName: SBom-$(System.JobAttempt) | 
|  | 80 | +                  targetPath: $(System.DefaultWorkingDirectory)/_manifest | 
0 commit comments