mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Do not publish next version from Travis CI (#102)
Publish from Jenkins CI. Bump version to 3.2.0.
This commit is contained in:
11
.travis.yml
11
.travis.yml
@@ -13,14 +13,3 @@ install:
|
|||||||
before_script:
|
before_script:
|
||||||
- export ANDROID_HOME=/usr/local/share/android-sdk
|
- export ANDROID_HOME=/usr/local/share/android-sdk
|
||||||
script: ./build.sh $PACKAGE_VERSION
|
script: ./build.sh $PACKAGE_VERSION
|
||||||
before_deploy:
|
|
||||||
- cd ./dist/package/
|
|
||||||
- node ../../.travis/add-publishConfig.js next
|
|
||||||
deploy:
|
|
||||||
skip_cleanup: true
|
|
||||||
provider: npm
|
|
||||||
email: nativescript@telerik.com
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
api_key:
|
|
||||||
secure: hVa2B3T89H5v1YIYzmcU+ucYLzDVWf17kI+wDMONW4JK0h/7RBNM+tiYYFp4t4yVE42uJVQMTT0DJfG4mbJG5MozABkADsrxW2LfRO05Qvg3F7LLLORSDuCl5WQBy/ncQaGsS/C5GZqwoRIMiRCFRdWEIgGa5erUduBuQ56tqAABT2WK85EpU9f/74mBmraVOQ+/x8nJFB2goUcGky4n2iXqj1lOT+pKSRlSlKnlNKjB43eSuHrbbjz6VzA7AJN/HqX0mxlxdWPQEhvnx1WmUymGTlmALY9LN0l0IpypTdrmCZS0EuqkCL4eoZss9w1E5ncMKKuSGasiRqAU7Vgjv97tZYyKqfazfTzimZruelhbjIzUbrQfOATqVe2x4IPcR+iThtK1c6fJhlPhM7pGpX1GE73GsTj8B6t9+UfYPtvJH0qM4gu6GHScyYpHxwbfUE5MnAK0P/3qEv2MWk+EHyKaj5dj2ECTpaev2kQH1JRmjytaPPV2Nqq6E8d6zGHwRuo6s9I+nCK4oGZPk9cHlhMQ4EUnrwyBb6umw51mtaV+uD56nPuD5knQtGOCdDnSt3Nh1q4TXDqD7QwWpFZyUd0jOVUx8C6/hkRtm4mxDBS6RZ/TQuvwAD1apW4QKD+vUUaIrERcyzu8bW1GL3QQZdBxggomS8wFuqK/jDMmFng=
|
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
var fsModule = require('fs');
|
|
||||||
|
|
||||||
//Adds a publishConfig section to the package.json file
|
|
||||||
// and sets a tag to it
|
|
||||||
|
|
||||||
var path = './package.json';
|
|
||||||
var fileOptions = {encoding: "utf-8"};
|
|
||||||
var content = fsModule.readFileSync(path, fileOptions);
|
|
||||||
|
|
||||||
var tag = process.argv[2];
|
|
||||||
if (!tag) {
|
|
||||||
console.log('Please pass the tag name as an argument!');
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
var packageDef = JSON.parse(content);
|
|
||||||
if (!packageDef.publishConfig) {
|
|
||||||
packageDef.publishConfig = {};
|
|
||||||
}
|
|
||||||
packageDef.publishConfig.tag = tag;
|
|
||||||
|
|
||||||
var newContent = JSON.stringify(packageDef, null, ' ');
|
|
||||||
fsModule.writeFileSync(path, newContent, fileOptions);
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tns-core-modules-widgets",
|
"name": "tns-core-modules-widgets",
|
||||||
"version": "3.1.0",
|
"version": "3.2.0",
|
||||||
"description": "Native widgets used in the NativeScript framework.",
|
"description": "Native widgets used in the NativeScript framework.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
"homepage": "https://github.com/NativeScript/android-widgets#readme",
|
"homepage": "https://github.com/NativeScript/android-widgets#readme",
|
||||||
"nativescript": {
|
"nativescript": {
|
||||||
"platforms": {
|
"platforms": {
|
||||||
"ios": "2.0.0",
|
"ios": "3.0.0",
|
||||||
"android": "2.0.0"
|
"android": "3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user