Added calling version bump before release, minor publish-release update

This commit is contained in:
Natalia 2018-07-26 23:24:07 -07:00
parent c3050ff6fd
commit 51ef762750
2 changed files with 12 additions and 15 deletions

View File

@ -78,6 +78,9 @@ workflows:
- prep-build
# - all-tests-pass
- job-publish-prerelease:
# filters:
# branches:
# only: master
requires:
- prep-deps-npm
- prep-build
@ -329,20 +332,11 @@ jobs:
key: build-cache-{{ .Revision }}
- restore_cache:
key: job-screens-{{ .Revision }}
- store_artifacts:
path: dist/mascara
destination: builds/mascara
- store_artifacts:
path: dist/sourcemaps
destination: builds/sourcemaps
- store_artifacts:
path: builds
destination: builds
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- run:
name: build:announce
name: bump version
command: npm run version:bump minor
- run:
name: build:release
command: node ./development/publish-release.js
job-publish-postrelease:

View File

@ -3,9 +3,11 @@ const request = require('request-promise');
const VERSION = require('../dist/chrome/manifest.json').version;
const fs = require('fs');
start().catch(console.error);
publishRelease().then(function () {
console.log("Published");
});
async function start() {
async function publishRelease() {
console.log('VERSION', VERSION)
const CIRCLE_SHA1 = process.env.CIRCLE_SHA1
let releaseId;
@ -13,6 +15,7 @@ async function start() {
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,