Skip to content
Closed
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions common/config/azure-pipelines/npm-publish-rush.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
parameters:
- name: TestRun
displayName: 'Test Run (Will Not Publish Tests)'
type: boolean
default: true

variables:
- name: FORCE_COLOR
value: 1
Expand Down Expand Up @@ -52,11 +58,13 @@ extends:

- template: /common/config/azure-pipelines/templates/publish.yaml@self
parameters:
TestRun: ${{ parameters.TestRun }}
VersionPolicyName: noRush
BranchName: $(SourceBranch)

- template: /common/config/azure-pipelines/templates/publish.yaml@self
parameters:
TestRun: ${{ parameters.TestRun }}
VersionPolicyName: rush
BranchName: $(SourceBranch)

Expand Down
7 changes: 7 additions & 0 deletions common/config/azure-pipelines/npm-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
parameters:
- name: TestRun
displayName: 'Test Run (Will Not Publish Tests)'
type: boolean
default: true

variables:
- name: FORCE_COLOR
value: 1
Expand Down Expand Up @@ -47,6 +53,7 @@ extends:

- template: /common/config/azure-pipelines/templates/publish.yaml@self
parameters:
TestRun: ${{ parameters.TestRun }}
VersionPolicyName: noRush
BranchName: $(SourceBranch)

Expand Down
29 changes: 25 additions & 4 deletions common/config/azure-pipelines/templates/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,30 @@ parameters:
- name: BranchName
type: string
default: $(Build.SourceBranchName)
- name: TestRun
type: boolean
default: true

steps:
- script: 'node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch ${{ parameters.BranchName }} --add-commit-details --set-access-level public'
displayName: 'Rush Publish (Policy: ${{ parameters.VersionPolicyName }})'
env:
NPM_AUTH_TOKEN: $(npmToken)
- script: 'node common/scripts/install-run-rush.js publish --publish --pack --include-all --release-folder esrp-release'
displayName: 'Create TarBallz folder for Rush packages'

- task: EsrpRelease@7
inputs:
connectedservicename: 'ODSP-Web-NPM-ESRP'
keyvaultname: 'odsp-web-esrp'
signcertname: 'be2088dc-be24-46c8-b0b1-aa555603f375'
authcertname: 'be2088dc-odsp-web-ESRP'
clientid: 'be2088dc-be24-46c8-b0b1-aa555603f375'
intent: 'PackageDistribution'
folderlocation: '$(Pipeline.Workspace)/esrp-release'
waitforreleasecompletion: true
owners: '[email protected]'
approvers: '[email protected]'
serviceendpointurl: 'https://api.esrp.microsoft.com'
mainpublisher: 'ESRPPACMAN'
domaintenantid: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
${{ if eq(parameters.TestRun, false) }}:
contenttype: 'npm'
${{ else }}:
contenttype: 'maven'
Loading