Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit 43c3393

Browse files
author
Kent C. Dodds
committed
fix(build): Updating scripts
1 parent 43e4df1 commit 43c3393

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

scripts/authorize-push.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
var exec = require('child_process').exec
1+
var exec = require('child_process').exec;
22

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;
55

66
if (!(process.env.CI && GH_TOKEN && repo)) {
7-
process.exit(1)
7+
process.exit(1);
88
}
99

1010
exec('git remote set-url origin ' + repo.replace('https://', 'https://' + GH_TOKEN + '@') + ' && ');

scripts/publish-latest.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
#!/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
33

44
F_VERSION=$1
5+
6+
echo "shoing origin"
7+
git remote show origin
8+
9+
echo "updating"
10+
git remote update
11+
512
echo "fetching"
613
git fetch
714

815
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
1020

1121
echo "adding dist"
1222
git add dist

0 commit comments

Comments
 (0)