This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from brown-ccv/develop
Develop
- Loading branch information
Showing
9 changed files
with
14,403 additions
and
8,074 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ yarn-debug.log* | |
yarn-error.log* | ||
|
||
psiturkit/*_turk | ||
|
||
public/config/version.json |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"email": "[email protected]", | ||
"url": "ccv.brown.edu" | ||
}, | ||
"version": "1.1.0", | ||
"version": "1.2.1", | ||
"license": "MIT", | ||
"private": true, | ||
"main": "public/electron.js", | ||
|
@@ -18,7 +18,8 @@ | |
"cross-env": "^6.0.3", | ||
"electron-log": "^3.0.9", | ||
"electron-squirrel-startup": "^1.0.0", | ||
"event-marker": "git+https://github.com/brown-ccv/event-marker.git#bump-version", | ||
"event-marker": "git+https://github.com/brown-ccv/event-marker.git", | ||
"execa": "^4.0.3", | ||
"fs-extra": "^9.0.0", | ||
"jquery": "^3.4.1", | ||
"jspsych-react": "^0.2.2", | ||
|
@@ -80,7 +81,8 @@ | |
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-react": "^7.14.3", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"require-context.macro": "^1.1.1" | ||
"require-context.macro": "^1.1.1", | ||
"semantic-release": "^17.1.1" | ||
}, | ||
"babel": { | ||
"plugin": [ | ||
|
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,26 @@ | ||
// Get Git Commit SHA and Branch | ||
|
||
const fs = require('fs-extra') | ||
const execa = require('execa'); | ||
|
||
let git; | ||
|
||
if (process.env.CI) { | ||
const sha = process.env.GITHUB_SHA | ||
const ref = process.env.GITHUB_REF | ||
git = {sha, ref} | ||
} | ||
else { | ||
const sha = execa.commandSync('git rev-parse HEAD').stdout | ||
const ref = execa.commandSync('git branch --show-current').stdout | ||
git = {sha, ref} | ||
} | ||
|
||
|
||
fs.writeFile('public/config/version.json', JSON.stringify(git)) | ||
.then(() => { | ||
console.log(`Saved version file with rev: ${git.sha}, branch: ${git.ref}`); | ||
}) | ||
.catch((err) => { | ||
console.log(err); | ||
}); |