| 588 | }, |
| 589 | |
| 590 | getCurrentBetaVersion() { |
| 591 | try { |
| 592 | const output = execSync('npm view codeceptjs versions --json').toString() |
| 593 | const versions = JSON.parse(output) |
| 594 | const betaVersions = versions.filter(version => version.includes('beta')) |
| 595 | const latestBeta = betaVersions.length ? betaVersions[betaVersions.length - 1] : null |
| 596 | console.log(`Current beta version: ${latestBeta}`) |
| 597 | return latestBeta |
| 598 | } catch (error) { |
| 599 | console.error('Error fetching package versions:', error) |
| 600 | process.exit(1) |
| 601 | } |
| 602 | }, |
| 603 | |
| 604 | publishNextBetaVersion() { |
| 605 | const currentBetaVersion = this.getCurrentBetaVersion() |