Skip to content

Commit

Permalink
build: add only modified files and/or files in dist/* while commit a …
Browse files Browse the repository at this point in the history
…release (#50)
  • Loading branch information
Viatorus authored Nov 26, 2017
1 parent e5eb516 commit 4bbb397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ function update_version() {

function push() {
run("git", ["checkout", "-b", RELEASE_BRANCH]);
run("git", ["add", "."]);
run("git", ["add", "-u"]);
run("git", ["add", "dist/*"]);
run("git", ["commit", "-m", `Release ${VERSION}`]);
run("git", ["remote", "set-url", "origin", `https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git`]);
run("git", ["push", "--set-upstream", "origin", RELEASE_BRANCH]);
Expand Down

0 comments on commit 4bbb397

Please sign in to comment.