Added master branch filter to config, added job-publish-postrelease to jobs, pumped version
This commit is contained in:
parent
c3aa19ae5e
commit
831fad37f8
|
@ -76,26 +76,33 @@ workflows:
|
|||
requires:
|
||||
- prep-deps-npm
|
||||
- prep-build
|
||||
# - all-tests-pass
|
||||
# - all-tests-pass
|
||||
- job-publish-prerelease:
|
||||
# filters:
|
||||
# branches:
|
||||
# only: master
|
||||
requires:
|
||||
- prep-deps-npm
|
||||
- prep-build
|
||||
- job-screens
|
||||
# - all-tests-pass
|
||||
# - all-tests-pass
|
||||
- job-publish-release:
|
||||
# filters:
|
||||
# branches:
|
||||
# only: master
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
requires:
|
||||
- prep-deps-npm
|
||||
- prep-build
|
||||
- prep-docs
|
||||
- job-screens
|
||||
# - all-tests-pass
|
||||
# - all-tests-pass
|
||||
- job-publish-postrelease:
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
requires:
|
||||
- prep-deps-npm
|
||||
- prep-build
|
||||
- prep-docs
|
||||
- job-screens
|
||||
# - all-tests-pass
|
||||
|
||||
jobs:
|
||||
prep-deps-npm:
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
## Current Master
|
||||
|
||||
## 4.8.8 Fri Jul 27 2018
|
||||
|
||||
## 4.8.7 Fri Jul 27 2018
|
||||
|
||||
## 4.8.6 Fri Jul 27 2018
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "__MSG_appName__",
|
||||
"short_name": "__MSG_appName__",
|
||||
"version": "4.8.7",
|
||||
"version": "4.8.8",
|
||||
"manifest_version": 2,
|
||||
"author": "https://metamask.io",
|
||||
"description": "__MSG_appDescription__",
|
||||
|
|
|
@ -5,20 +5,15 @@ const fs = require('fs');
|
|||
|
||||
publishRelease().then(function () {
|
||||
console.log("Published");
|
||||
}).catch(function (err) {
|
||||
console.error('error in publishRelease:' + err);
|
||||
throw err;
|
||||
});
|
||||
|
||||
async function publishRelease() {
|
||||
console.log('VERSION', VERSION)
|
||||
const CIRCLE_SHA1 = process.env.CIRCLE_SHA1
|
||||
let releaseId;
|
||||
const SHORT_SHA1 = CIRCLE_SHA1.slice(0, 7)
|
||||
const CREATE_RELEASE_URI = `https://api.github.com/repos/Natalya11444/metamask-extension/releases`;
|
||||
console.log(`CREATE_RELEASE_URI: ${CREATE_RELEASE_URI}`)
|
||||
|
||||
// todo check title, release notes
|
||||
request({
|
||||
method: 'POST',
|
||||
uri: CREATE_RELEASE_URI,
|
||||
|
@ -27,9 +22,9 @@ async function publishRelease() {
|
|||
'Authorization': `token ${GITHUB_TOKEN}`
|
||||
},
|
||||
body: JSON.stringify({
|
||||
body: "Description",
|
||||
body: "Release is ready",
|
||||
tag_name: `v${VERSION}`,
|
||||
name: `v${VERSION}. New release`,
|
||||
name: `Version ${VERSION}`,
|
||||
target_commitish: CIRCLE_SHA1
|
||||
})
|
||||
}).then(async function (response) {
|
||||
|
|
Loading…
Reference in New Issue