@argos-ci/core 4.1.3 → 4.1.4
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/dist/index.js +5 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -788,6 +788,11 @@ async function readConfig(options = {}) {
|
|
|
788
788
|
ciProvider: ciEnv?.key || null,
|
|
789
789
|
previewBaseUrl: defaultConfig.previewBaseUrl || null
|
|
790
790
|
});
|
|
791
|
+
if (!config.get("branch") || !config.get("commit")) {
|
|
792
|
+
throw new Error(
|
|
793
|
+
"Argos requires a branch and a commit to be set. If you are running in a non-git environment consider setting ARGOS_BRANCH and ARGOS_COMMIT environment variables."
|
|
794
|
+
);
|
|
795
|
+
}
|
|
791
796
|
config.validate();
|
|
792
797
|
return config.get();
|
|
793
798
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/core",
|
|
3
3
|
"description": "Node.js SDK for visual testing with Argos.",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"exports": {
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"lint": "eslint .",
|
|
65
65
|
"test": "vitest"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "a1f55cdee00ce144eb5b0f7ef08e451867d0c129"
|
|
68
68
|
}
|