Skip to content

Commit a442db6

Browse files
authored
Allow skip publish DocMS or Github IO for each artifact (Azure#11218)
1 parent e3dccb9 commit a442db6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eng/pipelines/templates/stages/archetype-js-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ stages:
5151
RepoId: Azure/azure-sdk-for-js
5252
WorkingDirectory: $(System.DefaultWorkingDirectory)
5353

54-
- ${{if ne(artifact.options.skipPublishPackage, 'true')}}:
54+
- ${{if ne(artifact.skipPublishPackage, 'true')}}:
5555
- deployment: PublishPackage
5656
displayName: "Publish to npmjs"
5757
condition: and(succeeded(), ne(variables['Skip.PublishPackage'], 'true'))
@@ -79,7 +79,7 @@ stages:
7979
arguments: '-pathToArtifacts $(Package.Archive) -accessLevel "public" -tag $(Tag) -additionalTag "$(AdditionalTag)" -registry ${{parameters.Registry}} -npmToken $(azure-sdk-npm-token)'
8080
pwsh: true
8181

82-
- ${{if ne(artifact.options.skipPublishDocs, 'true')}}:
82+
- ${{if ne(artifact.skipPublishDocMs, 'true')}}:
8383
- deployment: PublishDocs
8484
displayName: Docs.MS Release
8585
condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'))
@@ -125,7 +125,7 @@ stages:
125125
GHReviewersVariable: 'OwningGHUser'
126126
CIConfigs: $(CIConfigs)
127127

128-
- ${{if ne(artifact.options.skipPublishDocs, 'true')}}:
128+
- ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}:
129129
- deployment: PublishDocsGitHubIO
130130
displayName: Publish Docs to GitHubIO Blob Storage
131131
condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'))
@@ -168,7 +168,7 @@ stages:
168168
# we override the regular script path because we have cloned the build tools repo as a separate artifact.
169169
ScriptPath: 'eng/common/scripts/copy-docs-to-blobstorage.ps1'
170170

171-
- ${{if ne(artifact.options.skipUpdatePackageVersion, 'true')}}:
171+
- ${{if ne(artifact.skipUpdatePackageVersion, 'true')}}:
172172
- deployment: UpdatePackageVersion
173173
displayName: "Update Package Version"
174174
condition: and(succeeded(), ne(variables['Skip.UpdatePackageVersion'], 'true'))
@@ -213,7 +213,7 @@ stages:
213213
artifact: ${{parameters.ArtifactName}}
214214
timeoutInMinutes: 5
215215
- ${{ each artifact in parameters.Artifacts }}:
216-
- ${{if ne(artifact.options.skipPublishDevFeed, 'true')}}:
216+
- ${{if ne(artifact.skipPublishDevFeed, 'true')}}:
217217
- pwsh: |
218218
$detectedPackageName=Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}-*-alpha*.tgz
219219
echo "##vso[task.setvariable variable=Package.Archive]$detectedPackageName"

0 commit comments

Comments
 (0)