-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d72157
commit 7e33096
Showing
6 changed files
with
46 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* eslint-disable no-console */ | ||
const execa = require('execa') | ||
|
||
/** | ||
* Get the version, commit date and git sha of the latest tag published on npm. | ||
*/ | ||
const getCurrentReleaseData = async (verbose = true) => { | ||
verbose && console.log('Get Current Release Information\n') | ||
const { stdout } = await execa('npm', ['info', 'cypress', '--json']) | ||
const npmInfo = JSON.parse(stdout) | ||
|
||
const latestReleaseInfo = { | ||
version: npmInfo['dist-tags'].latest, | ||
commitDate: npmInfo.buildInfo.commitDate, | ||
buildSha: npmInfo.buildInfo.commitSha, | ||
} | ||
|
||
verbose && console.log({ latestReleaseInfo }) | ||
|
||
return latestReleaseInfo | ||
} | ||
|
||
module.exports = { | ||
getCurrentReleaseData, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7e33096
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: