Skip to content

Commit 4ab31f6

Browse files
committed
added envar parse
1 parent 2c14cab commit 4ab31f6

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qa-shadow-report",
3-
"version": "1.1.32",
3+
"version": "1.1.33",
44
"bin": {
55
"qa-shadow-report": "./cli.js",
66
"qasr": "./cli.js",

scripts/postInstall.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,17 @@ const createConfigFile = () => {
142142
// 'alpha',
143143
// 'beta',
144144
],
145-
// Replace with the actual Google Spreadsheet ID, found in the URL:
146-
// googleSpreadsheetId: 'your-google-spreadsheet-id',
147-
148-
// Path to your Google credentials file, service account credentials JSON file:
149-
// googleKeyFilePath: 'googleCredentials.json',
150-
151-
// Path to your test data results, matching the output format of the test runner:
152-
// testData: './path-to-test-results/output.json',
145+
// Google Spreadsheet URL: Replace with either the actual spreadsheet ID or an environment variable.
146+
// googleSpreadsheetId: 'your-google-spreadsheet-id' OR googleSpreadsheetId: process.env.GOOGLE_SHEET_URL,
147+
148+
// Path to Google credentials file (service account JSON file): Replace with the file path or use an environment variable.
149+
// googleKeyFilePath: 'googleCredentials.json' OR googleKeyFilePath: process.env.GOOGLE_KEY_FILE_PATH,
150+
151+
// Path to test data results file in the format generated by your test runner. Replace with the path or use an environment variable.
152+
// testData: './path-to-test-results/output.json' OR testData: process.env.TEST_DATA,
153153
154-
// Default path to the directory where CSV downloads will be saved:
155-
// (optional) uncomment and replace with your desired path:
156-
// csvDownloadsPath: 'downloads',
154+
// Directory for saving CSV downloads (optional). Uncomment and replace with your preferred path or use an environment variable.
155+
// csvDownloadsPath: 'downloads' OR csvDownloadsPath: process.env.CSV_DOWNLOADS_PATH,
157156
};
158157
`;
159158
fs.writeFileSync(configFilePath, defaultConfigContent, {

0 commit comments

Comments
 (0)