diff --git a/.gitignore b/.gitignore index f07405bb4b6..93d80cd12cf 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,6 @@ dist-storybook/ playwright-report/ test-results/ +# Claude Code local configuration +.claude/*.local.json + diff --git a/common/config/azure-pipelines/npm-publish-rush.yaml b/common/config/azure-pipelines/npm-publish-rush.yaml index 2502d76dbd5..ee40eec3c8d 100644 --- a/common/config/azure-pipelines/npm-publish-rush.yaml +++ b/common/config/azure-pipelines/npm-publish-rush.yaml @@ -1,3 +1,9 @@ +parameters: + - name: publishToNpmFeed + displayName: 'Publish to npm feed' + type: boolean + default: true + variables: - name: FORCE_COLOR value: 1 @@ -25,6 +31,7 @@ extends: name: publish-rushstack os: linux templateContext: + outputParentDirectory: $(Build.ArtifactStagingDirectory) outputs: - output: pipelineArtifact targetPath: $(Build.ArtifactStagingDirectory)/published-versions @@ -32,6 +39,9 @@ extends: - output: pipelineArtifact targetPath: $(Build.ArtifactStagingDirectory)/json-schemas artifactName: json-schemas + - output: pipelineArtifact + targetPath: $(Build.ArtifactStagingDirectory)/packages + artifactName: packages steps: - checkout: self persistCredentials: true @@ -53,14 +63,17 @@ extends: - 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/pack.yaml@self - - template: /common/config/azure-pipelines/templates/publish.yaml@self - parameters: - VersionPolicyName: rush - BranchName: $(SourceBranch) + - ${{ if eq(parameters.publishToNpmFeed, true) }}: + - 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/post-publish.yaml@self diff --git a/common/config/azure-pipelines/npm-publish.yaml b/common/config/azure-pipelines/npm-publish.yaml index 86f88fa8040..dfb163c14b8 100644 --- a/common/config/azure-pipelines/npm-publish.yaml +++ b/common/config/azure-pipelines/npm-publish.yaml @@ -1,3 +1,9 @@ +parameters: + - name: publishToNpmFeed + displayName: 'Publish to npm feed' + type: boolean + default: true + variables: - name: FORCE_COLOR value: 1 @@ -25,6 +31,7 @@ extends: name: publish-rushstack os: linux templateContext: + outputParentDirectory: $(Build.ArtifactStagingDirectory) outputs: - output: pipelineArtifact targetPath: $(Build.ArtifactStagingDirectory)/published-versions @@ -32,6 +39,9 @@ extends: - output: pipelineArtifact targetPath: $(Build.ArtifactStagingDirectory)/json-schemas artifactName: json-schemas + - output: pipelineArtifact + targetPath: $(Build.ArtifactStagingDirectory)/packages + artifactName: packages steps: - checkout: self persistCredentials: true @@ -48,9 +58,12 @@ extends: - 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/pack.yaml@self + + - ${{ if eq(parameters.publishToNpmFeed, true) }}: + - template: /common/config/azure-pipelines/templates/publish.yaml@self + parameters: + VersionPolicyName: noRush + BranchName: $(SourceBranch) - template: /common/config/azure-pipelines/templates/post-publish.yaml@self diff --git a/common/config/azure-pipelines/templates/pack.yaml b/common/config/azure-pipelines/templates/pack.yaml new file mode 100644 index 00000000000..9b646b2312c --- /dev/null +++ b/common/config/azure-pipelines/templates/pack.yaml @@ -0,0 +1,3 @@ +steps: + - script: 'node common/scripts/install-run-rush.js publish --publish --pack --include-all --release-folder $(Build.ArtifactStagingDirectory)/packages' + displayName: 'Rush Pack'