diff --git a/.github/workflows/buildPackages.yml b/.github/workflows/buildPackages.yml index b2316064e..f574fb448 100644 --- a/.github/workflows/buildPackages.yml +++ b/.github/workflows/buildPackages.yml @@ -46,10 +46,12 @@ jobs: - name: 'Build All Packages' run: | + npx lerna version --conventional-commits --yes --no-changelog npx lerna run build npx lerna run manifest + - name: 'Run Unit Tests' if: ${{ inputs.publish == true }} run: npx lerna run test -- --colors diff --git a/packages/sfpowerscripts-cli/messages/deploy.json b/packages/sfpowerscripts-cli/messages/deploy.json index 47c2f5e53..12e357891 100644 --- a/packages/sfpowerscripts-cli/messages/deploy.json +++ b/packages/sfpowerscripts-cli/messages/deploy.json @@ -10,5 +10,6 @@ "baselineorgFlagDescription": "The org against which the package skip should be baselined", "allowUnpromotedPackagesFlagDescription": "Allow un-promoted packages to be installed in production", "retryOnFailureFlagDescription": "Retry on a failed deployment of a package", - "configFileFlagDescription":"Path to the config file which determines how the packages are deployed based on the filters in release config" + "configFileFlagDescription":"Path to the config file which determines how the packages are deployed based on the filters in release config", + "enableSourceTrackingFlagDescription": "Enable source tracking on the packages being deployed to an org" } diff --git a/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts b/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts index b8aaa4506..d7461a750 100644 --- a/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts +++ b/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts @@ -77,6 +77,9 @@ export default class Deploy extends SfpowerscriptsCommand { releaseconfig: flags.string({ description: messages.getMessage('configFileFlagDescription'), }), + enablesourcetracking: flags.boolean({ + description: messages.getMessage('enableSourceTrackingFlagDescription'), + }), loglevel: flags.enum({ description: 'logging level for this command invocation', default: 'info', @@ -127,7 +130,7 @@ export default class Deploy extends SfpowerscriptsCommand { waitTime: this.flags.waittime, tags: tags, isTestsToBeTriggered: false, - deploymentMode: DeploymentMode.NORMAL, + deploymentMode: this.flags.enablesourcetracking? DeploymentMode.SOURCEPACKAGES_PUSH: DeploymentMode.NORMAL, skipIfPackageInstalled: this.flags.skipifalreadyinstalled, logsGroupSymbol: this.flags.logsgroupsymbol, currentStage: Stage.DEPLOY, diff --git a/reviewpad.yml b/reviewpad.yml new file mode 100644 index 000000000..b50236265 --- /dev/null +++ b/reviewpad.yml @@ -0,0 +1,6 @@ +workflows: + - name: lint-commits + if: + - $description() != "" + then: + - $commitLint() \ No newline at end of file