From 9bfc5c720026115ffc409c8e1f059e5b33bbf726 Mon Sep 17 00:00:00 2001 From: Mate Pek Date: Tue, 30 Oct 2018 23:07:15 +0100 Subject: [PATCH] had to made an aearly release because of an error --- .travis.yml | 26 +++++++++++++------------- package.json | 2 +- src/repo_scripts/deploy.ts | 11 ++++++----- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 52728378..50620317 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,16 +29,16 @@ install: script: - npm test --silent -before_deploy: - - npm install - - npm run compile - -deploy: - provider: script - script: node ./out/repo_scripts/deploy.js - on: - condition: "$TRAVIS_OS_NAME = osx" - node_js: "8" - repo: matepek/vscode-catch2-test-adapter - branch: master - tags: false +#before_deploy: +# - npm install +# - npm run compile +# +#deploy: +# provider: script +# script: node ./out/repo_scripts/deploy.js +# on: +# condition: "$TRAVIS_OS_NAME = osx" +# node_js: "8" +# repo: matepek/vscode-catch2-test-adapter +# branch: master +# tags: false diff --git a/package.json b/package.json index 458c2f52..68be24c8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "icon": "resources/icon.png", "author": "Mate Pek", "publisher": "matepek", - "version": "1.2.3", + "version": "2.0.0", "license": "Unlicense", "homepage": "https://github.com/matepek/vscode-catch2-test-adapter", "repository": { diff --git a/src/repo_scripts/deploy.ts b/src/repo_scripts/deploy.ts index 4dace16a..36c9fc69 100644 --- a/src/repo_scripts/deploy.ts +++ b/src/repo_scripts/deploy.ts @@ -208,12 +208,13 @@ async function createGithubRelease( .post({ url: 'https://api.github.com/repos/matepek/vscode-catch2-test-adapter/releases', - headers: {'User-Agent': 'matepek'} + headers: {'User-Agent': 'matepek'}, + form: { + 'tag_name': 'testtag2', //'v' + info.version, + 'target_commitish': 'development' + } }) - .auth('matepek', key) - .json(JSON.stringify({ - 'tag_name': 'testtag' //'v' + info.version, - }))) + .auth('matepek', key)) .toString()); const uploadAssetRequest =