Publish version 0.2.2

This commit is contained in:
pengfei.zhou 2020-01-06 13:13:06 +08:00 committed by osborn
parent 05b5c69080
commit dac37cd899
7 changed files with 54 additions and 9 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'DoricCore'
s.version = '0.2.1'
s.version = '0.2.2'
s.summary = 'Doric iOS SDK'

View File

@ -1 +1 @@
version=0.2.1
version=0.2.2

View File

@ -1,6 +1,6 @@
{
"name": "doric",
"version": "0.2.2-alpha.3",
"version": "0.2.2",
"description": "The JS Framework of Doric",
"main": "bundle/doric-vm.js",
"types": "index.d.ts",

View File

@ -1,8 +1,8 @@
{
"name": "doric-web",
"version": "0.1.2",
"version": "0.2.2",
"description": "Doric library for Web",
"main": "build/index.js",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc -p .&& rollup -c"

42
publish.sh Normal file
View File

@ -0,0 +1,42 @@
#!/usr/bin/env bash
##############################################################################
##
## Publish JS,Android,iOS,Web
##
##############################################################################
CURRENT_DIR=$(cd $(dirname $0); pwd)
CURRENT_VERSION=$(cat $CURRENT_DIR/version)
echo "Current version is "$CURRENT_VERSION
# Modify
## JS
cd $CURRENT_DIR/doric-js && npm version $CURRENT_VERSION --allow-same-version
## Android
echo "version="$CURRENT_VERSION > $CURRENT_DIR/doric-android/version.properties
## iOS
sed -i "" "s/\(version[ ]*= \)'[0-9 \.]*'/\1'$CURRENT_VERSION'/g" $CURRENT_DIR/DoricCore.podspec
## Web
cd $CURRENT_DIR/doric-web && npm version $CURRENT_VERSION --allow-same-version
# git save
cd $CURRENT_DIR/
echo "Commit changes"
git add .
git commit -m "Publish version $CURRENT_VERSION"
git tag $CURRENT_VERSION
echo "Push Changes"
cd $CURRENT_DIR/doric-js && npm publish
cd $CURRENT_DIR/doric-web && npm publish
# cd $CURRENT_DIR/doric-android && ./gradlew clean publishAll
cd $CURRENT_DIR && pod trunk push --allow-warnings

View File

@ -4,6 +4,8 @@
## Init Develop Environment
##
##############################################################################
cd doric-js && npm install && npm run build && cd ..
cd doric-demo && npm install && npm run build && cd ..
cd doric-cli && npm install && npm link && cd ..
CURRENT_DIR=$(cd $(dirname $0); pwd)
cd $CURRENT_DIR/doric-js && npm install && npm run build
cd $CURRENT_DIR/doric-demo && npm install && npm run build
cd $CURRENT_DIR/doric-cli && npm install && npm link

1
version Normal file
View File

@ -0,0 +1 @@
0.2.2