Skip to content

Commit

Permalink
Set up pipeline for publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Sep 20, 2024
1 parent 1259fdc commit 0615245
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions common/config/azure-pipelines/npm-publish-rush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ extends:
pool:
name: publish-rushstack
os: linux
templateContext:
outputs:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)/published-versions
artifactName: published-versions
# templateContext:
# outputs:
# - output: pipelineArtifact
# targetPath: $(Build.ArtifactStagingDirectory)/published-versions
# artifactName: published-versions
steps:
- checkout: self
persistCredentials: true
Expand All @@ -37,27 +37,27 @@ extends:

- template: /common/config/azure-pipelines/templates/build.yaml@self

- template: /common/config/azure-pipelines/templates/bump-versions.yaml@self
parameters:
VersionPolicyName: noRush
BranchName: $(SourceBranch)
# - template: /common/config/azure-pipelines/templates/bump-versions.yaml@self
# parameters:
# VersionPolicyName: noRush
# BranchName: $(SourceBranch)

- template: /common/config/azure-pipelines/templates/bump-versions.yaml@self
parameters:
VersionPolicyName: rush
BranchName: $(SourceBranch)
# - template: /common/config/azure-pipelines/templates/bump-versions.yaml@self
# parameters:
# VersionPolicyName: rush
# BranchName: $(SourceBranch)

- script: 'node libraries/rush-lib/scripts/plugins-prepublish.js'
displayName: 'Prepublish workaround for rush-lib'

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

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

- template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self
# - template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self
4 changes: 2 additions & 2 deletions common/config/azure-pipelines/templates/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ steps:
- script: 'git config --local user.name Rushbot'
displayName: 'git config name'

- script: 'node common/scripts/install-run-rush.js change --verify'
displayName: 'Verify Change Logs'
# - script: 'node common/scripts/install-run-rush.js change --verify'
# displayName: 'Verify Change Logs'

- script: 'node common/scripts/install-run-rush.js install'
displayName: 'Rush Install'
Expand Down
2 changes: 1 addition & 1 deletion common/config/azure-pipelines/templates/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
default: $(Build.SourceBranchName)

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'
- script: 'node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch release/rush-pr4927 --add-commit-details --set-access-level public --tag pr4927'
displayName: 'Rush Publish (Policy: ${{ parameters.VersionPolicyName }})'
env:
NPM_AUTH_TOKEN: $(npmToken)

0 comments on commit 0615245

Please sign in to comment.