From 279c273bee36433280f54060026c1afd705bc789 Mon Sep 17 00:00:00 2001 From: garikhg Date: Tue, 23 Jan 2024 00:35:42 +0400 Subject: [PATCH] Update dotenv.config path in Elementor script This commit adjusts the path used for 'dotenv.config' in the update-version-in-files.js script. The script is part of the wp-kit-elementor theme, and changing the path ensures the script can access the '.env' configuration file correctly. This change is critical for the proper functioning of the script for version updating tasks. --- .github/scripts/update-version-in-files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/update-version-in-files.js b/.github/scripts/update-version-in-files.js index 02605e8..2f7a4f5 100644 --- a/.github/scripts/update-version-in-files.js +++ b/.github/scripts/update-version-in-files.js @@ -2,7 +2,7 @@ const dotenv = require( 'dotenv' ); const path = require( 'path' ); -dotenv.config( { path: path.resolve( __dirname, '.env' ) } ); +dotenv.config( { path: path.resolve( '../../.env' ) } ); const replaceInFile = require( 'replace-in-file' ); const { VERSION } = process.env;