This repository was archived by the owner on Apr 30, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
- var exec = require ( 'child_process' ) . exec
1
+ var exec = require ( 'child_process' ) . exec ;
2
2
3
- var GH_TOKEN = process . env . GH_TOKEN
4
- var repo = require ( '../package.json' ) . repository . url
3
+ var GH_TOKEN = process . env . GH_TOKEN ;
4
+ var repo = require ( '../package.json' ) . repository . url ;
5
5
6
6
if ( ! ( process . env . CI && GH_TOKEN && repo ) ) {
7
- process . exit ( 1 )
7
+ process . exit ( 1 ) ;
8
8
}
9
9
10
10
exec ( 'git remote set-url origin ' + repo . replace ( 'https://' , 'https://' + GH_TOKEN + '@' ) + ' && ' ) ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -e # exit with non-zero exit code if there are failurs
2
+ set -e # exit with non-zero exit code if there are failures
3
3
4
4
F_VERSION=$1
5
+
6
+ echo " shoing origin"
7
+ git remote show origin
8
+
9
+ echo " updating"
10
+ git remote update
11
+
5
12
echo " fetching"
6
13
git fetch
7
14
8
15
echo " checking out"
9
- git checkout -b latest origin/latest
16
+ git checkout -b latest
17
+
18
+ echo " mergin master"
19
+ git merge origin/master -m " master merge" -X theirs
10
20
11
21
echo " adding dist"
12
22
git add dist
You can’t perform that action at this time.
0 commit comments