Skip to content

Commit

Permalink
Update dotenv.config path in Elementor script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
garikhg committed Jan 22, 2024
1 parent a50f6c3 commit 279c273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/update-version-in-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 279c273

Please sign in to comment.