@pob/root 28.2.1 → 28.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,7 @@ jobs:
42
42
  id: git-check-modified
43
43
  run: if [[ -z $(git status -s) ]]; then echo "modified=false" >> $GITHUB_OUTPUT ; else echo "modified=true" >> $GITHUB_OUTPUT ; fi
44
44
 
45
+ # $buildStep$
45
46
  - name: Commit report
46
47
  if: steps.git-check-modified.outputs.modified == 'true'
47
48
  run: |
@@ -33,6 +33,7 @@ const installWorkflow = (
33
33
  installOnCICommand,
34
34
  installMutableCommand,
35
35
  ciPreStep,
36
+ buildStep = "",
36
37
  },
37
38
  condition = true,
38
39
  ) => {
@@ -51,6 +52,7 @@ const installWorkflow = (
51
52
  .replaceAll("$pmExec$", pmExec)
52
53
  .replaceAll("$pmDlx$", pmDlx)
53
54
  .replaceAll("$ciPreStep$", ciPreStep)
55
+ .replaceAll(" # $buildStep$\n", buildStep)
54
56
  .replaceAll("$installOnCICommand$", installOnCICommand)
55
57
  .replaceAll("$installMutableCommand$", installMutableCommand),
56
58
  );
@@ -65,7 +67,18 @@ export default function installGithubWorkflows({ pkg, pm }) {
65
67
  const pmCommands = getPackageManagerCommands(pm, true);
66
68
 
67
69
  if (fs.existsSync(".github")) {
68
- installWorkflow("push-renovate-pob_root", pmCommands);
70
+ installWorkflow("push-renovate-pob_root", {
71
+ ...pmCommands,
72
+ // the pre-commit lint resolves workspace packages through their build
73
+ // output, which is not committed
74
+ buildStep: pkg.scripts?.build
75
+ ? ` - name: Build
76
+ if: steps.git-check-modified.outputs.modified == 'true'
77
+ run: ${pmCommands.pmRun} build
78
+
79
+ `
80
+ : "",
81
+ });
69
82
  installWorkflow("push-renovate-format", pmCommands);
70
83
  ensureWorkflowUninstalled("push-renovate-prettier");
71
84
  ensureWorkflowUninstalled("push-renovate-typedoc");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "28.2.1",
3
+ "version": "28.2.2",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/christophehurpeau/pob",