Skip to content

Commit 08e5afa

Browse files
ramasilveyraarielger
authored andcommitted
Make a little more verbose the comments on the release script and remove unnecessary line
1 parent 6bc4277 commit 08e5afa

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

packages/core/tools/scripts/release.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ else
4949
rm -rf ../../bin ../../landing ../../lib ../../vendor
5050
rm ../../.babelrc ../../.eslintrc ../../.gitignore ../../Gruntfile.js ../../gulpfile.js ../../README.md ../../app.json ../../bower.json ../../component.json ../../index.js ../../index.styl ../../lerna.json ../../package.json ../../webpack.config.js
5151

52-
## Add build dir to git and remove packages folder
52+
## Add build dir to git (remove build from .gitignore)
5353
grep -v '^build$' .gitignore > .gitignore2
5454
mv .gitignore2 .gitignore
5555

@@ -60,10 +60,9 @@ else
6060

6161
echo packages >> .gitignore
6262

63-
## Commit changes
63+
## Commit changes and update git stage with changes on the .gitignore file
6464
git rm -r --cached .
6565
git add .
66-
git add --force build/*
6766
git commit -am "$NEXT_VERSION build"
6867

6968
## Create git tags

packages/react-components/tools/scripts/release.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ else
4949
rm -rf ../../bin ../../landing ../../lib ../../vendor
5050
rm ../../.babelrc ../../.eslintrc ../../.gitignore ../../Gruntfile.js ../../gulpfile.js ../../README.md ../../app.json ../../bower.json ../../component.json ../../index.js ../../index.styl ../../lerna.json ../../package.json ../../webpack.config.js
5151

52-
## Add build dir to git and remove packages folder
52+
## Add build dir to git (remove build from .gitignore)
5353
grep -v '^build$' .gitignore > .gitignore2
5454
mv .gitignore2 .gitignore
5555

@@ -60,10 +60,9 @@ else
6060

6161
echo packages >> .gitignore
6262

63-
## Commit changes
63+
## Commit changes and update git stage with changes on the .gitignore file
6464
git rm -r --cached .
6565
git add .
66-
git add --force build/*
6766
git commit -am "$NEXT_VERSION build"
6867

6968
## Create git tags

0 commit comments

Comments
 (0)