@code-pushup/ci 0.60.1 → 0.60.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.
- package/package.json +3 -3
- package/src/lib/run-utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/ci",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.2",
|
|
4
4
|
"description": "CI automation logic for Code PushUp (provider-agnostic)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/ci#readme",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@code-pushup/models": "0.60.
|
|
30
|
-
"@code-pushup/utils": "0.60.
|
|
29
|
+
"@code-pushup/models": "0.60.2",
|
|
30
|
+
"@code-pushup/utils": "0.60.2",
|
|
31
31
|
"glob": "^10.4.5",
|
|
32
32
|
"simple-git": "^3.20.0",
|
|
33
33
|
"yaml": "^2.5.1",
|
package/src/lib/run-utils.js
CHANGED
|
@@ -119,7 +119,7 @@ export async function ensureHeadBranch({ refs, git }) {
|
|
|
119
119
|
export async function runInBaseBranch(base, env, fn) {
|
|
120
120
|
const { git, settings: { logger }, } = env;
|
|
121
121
|
await git.fetch('origin', base.ref, ['--depth=1']);
|
|
122
|
-
await git.checkout(['-f', base.
|
|
122
|
+
await git.checkout(['-f', base.sha]);
|
|
123
123
|
logger.info(`Switched to base branch ${base.ref}`);
|
|
124
124
|
const result = await fn();
|
|
125
125
|
await git.checkout(['-f', '-']);
|