Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
new fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abranhe committed Aug 14, 2018
1 parent 3c951b3 commit 0520c5a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 55 deletions.
21 changes: 10 additions & 11 deletions README.md
Expand Up @@ -23,19 +23,18 @@
# Usage

```
Usage
$ npx github-npm <version...>
Usage:
$ npx github-npm <command...>
Where version can be:
patch | minor | major
Options
-h, --help Show help
--version View package version
-m, --message Add a custom message to commit
Eg:
$ github-npm patch -m "drop new realese"
patch | minor | major
Options:
-h --help Show help and exit
--version View package version
<version> Select between <patch, minor, major>
<version> -m <message> Add a custom message to commit
Eg: $ github-npm patch -m "drop new realese"
```


Expand Down
34 changes: 0 additions & 34 deletions github-npm.log

This file was deleted.

21 changes: 11 additions & 10 deletions release.sh
Expand Up @@ -5,7 +5,7 @@
# release.sh
#
# Easy way to release npm packages on Github
# Issues: https://github.com/19cah/github-npm/issues
# Issues: https://github.com/abranhe/github-npm/issues

#----------------------------- Helper ------------------------------------------
# Args
Expand Down Expand Up @@ -44,11 +44,15 @@ function help()
echo -e "
${PINK}Usage${RESET}:
${PINK}${REVERSE}$ npx github-npm <command...>${RESET}
${PINK}Where${RESET} command is:
${GREEN}-h help${RESET} show help
${GREEN}--version${RESET} view package version
${GREEN}<version>${RESET} select between <patch, minor, major>
${GREEN}<version> -m <message>${RESET} add a custom message to commit
${PINK}Where${RESET} version can be:
patch | minor | major
${PINK}Options${RESET}:
${GREEN}-h --help${RESET} Show help and exit
${GREEN}--version${RESET} View package version
${GREEN}<version>${RESET} Select between <patch, minor, major>
${GREEN}<version> -m <message>${RESET} Add a custom message to commit
Eg: $ github-npm patch -m \"drop new realese\"
"
}
Expand Down Expand Up @@ -129,14 +133,11 @@ function publishToNPM()
git push origin --tags &>5.log
echo -e "$(message "Tags Created")"

# Save to 1 file
cat 1.log 2.log 3.log 4.log 5.log >> github-npm.log

rm -rf 1.log 2.log 3.log 4.log 5.log 6.log

# Add and push commits
git add . # package.json and package-lock.json should change
git push origin master &>github-npm.log
git push origin master

echo -e "$(message "Committed all files to master")"
}
Expand Down

0 comments on commit 0520c5a

Please sign in to comment.