Skip to content

Commit

Permalink
remove redundant change
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerFrontegg committed Nov 5, 2024
1 parent 44fae90 commit 283072b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/increment-version.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function getCurrentVersion() {
const pkg = require('../../projects/frontegg-app/package.json');
async function getCurrentVersion() {
const pkg = await import('../../projects/frontegg-app/package.json');
const [major = 0, minor = 0, patch = 0] = pkg.version.split('.').map(Number);
return { major, minor, patch };
}
Expand All @@ -16,7 +16,7 @@ async function modifyVersion(newVersion) {


export default async (minorNeeded) => {
const version = getCurrentVersion();
const version = await getCurrentVersion();

let newVersion = { ...version };

Expand Down

0 comments on commit 283072b

Please sign in to comment.