From 0520c5acad35cf20ad139238c6e17610f17f967e Mon Sep 17 00:00:00 2001 From: Carlos Abraham Date: Tue, 14 Aug 2018 01:01:45 -0400 Subject: [PATCH] new fixes --- README.md | 21 ++++++++++----------- github-npm.log | 34 ---------------------------------- release.sh | 21 +++++++++++---------- 3 files changed, 21 insertions(+), 55 deletions(-) delete mode 100644 github-npm.log diff --git a/README.md b/README.md index 69984b0..28f922c 100644 --- a/README.md +++ b/README.md @@ -23,19 +23,18 @@ # Usage ``` -Usage - $ npx github-npm +Usage: + $ npx github-npm 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 + Select between + -m Add a custom message to commit + Eg: $ github-npm patch -m "drop new realese" ``` diff --git a/github-npm.log b/github-npm.log deleted file mode 100644 index 93771a8..0000000 --- a/github-npm.log +++ /dev/null @@ -1,34 +0,0 @@ -remote: This repository moved. Please use the new location: -remote: https://github.com/abranhe/github-npm.git -To https://github.com/19cah/github-npm.git - 4ef42a5..0566dac master -> master -Already on 'master' -Your branch is up to date with 'origin/master'. -up to date in 2.185s -found 0 vulnerabilities - -npm notice -npm notice 📦 github-npm@1.2.21 -npm notice === Tarball Contents === -npm notice 613B package.json -npm notice 175B .editorconfig -npm notice 29B .gitattributes -npm notice 46B .travis.yml -npm notice 1.1kB LICENSE -npm notice 2.0kB README.md -npm notice 6.0kB release.sh -npm notice === Tarball Details === -npm notice name: github-npm -npm notice version: 1.2.21 -npm notice package size: 3.9 kB -npm notice unpacked size: 10.0 kB -npm notice shasum: fb0cde3f62e7d2438742495d79e3eba152ed49f0 -npm notice integrity: sha512-A2OLJCvtDt1nT[...]mrel2tvTo9UJQ== -npm notice total files: 7 -npm notice -+ github-npm@1.2.21 -fatal: Failed to resolve '1.2.20' as a valid ref. -remote: This repository moved. Please use the new location: -remote: https://github.com/abranhe/github-npm.git -To https://github.com/19cah/github-npm.git - * [new tag] v1.2.21 -> v1.2.21 diff --git a/release.sh b/release.sh index ad77181..b16ecdd 100755 --- a/release.sh +++ b/release.sh @@ -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 @@ -44,11 +44,15 @@ function help() echo -e " ${PINK}Usage${RESET}: ${PINK}${REVERSE}$ npx github-npm ${RESET} -${PINK}Where${RESET} command is: - ${GREEN}-h help${RESET} show help - ${GREEN}--version${RESET} view package version - ${GREEN}${RESET} select between - ${GREEN} -m ${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}${RESET} Select between + ${GREEN} -m ${RESET} Add a custom message to commit Eg: $ github-npm patch -m \"drop new realese\" " } @@ -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")" }