Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.7.11 #33

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,23 @@ Update steps:

### master

### v0.7.8 (12 Apr 2022 )
### v0.7.11 (29 Sept 2022)

1. fix: 🐛 unknown revision

### v0.7.8 (12 Apr 2022)

1. fix ts-node not found bug

### v0.7.6 (12 Apr 2022 )
### v0.7.6 (12 Apr 2022)

1. Improve readability of output messages

### v0.7.4 (10 Apr 2022 )
### v0.7.4 (10 Apr 2022)

1. Remove git tag

### v0.7 (08 Apr 2022 )
### v0.7 (08 Apr 2022)

1. Fix re-push produces meaningless version when push fails after

Expand Down
4 changes: 2 additions & 2 deletions bin/pre-push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if (refs?.[0]?.localCommit.match(/^0+$/)) {
console.info('[Step-1]', 'Checking last commit...', '\n')
const pkgFile = path.join(process.cwd(), 'package.json')
const packageVersion = require(pkgFile).version
const lastCommitMsg = checkReturn(shell.exec('git log --pretty=format:"%s" HEAD^0 -1', { silent : true })).stdout
const lastCommitMsg = checkReturn(shell.exec('git log --pretty=format:"%s" HEAD~0 -1', { silent : true })).stdout

if (packageVersion === lastCommitMsg) {
console.info('[Step-1]', 'No need to bump the package version.', '\n')
Expand All @@ -75,7 +75,7 @@ checkReturn(shell.exec('npm version patch --no-package-lock', { silent : true })
process.env[INNER_PRE_HOOK] = '1'

console.info('[Step-4]', 'Remove git tag...', '\n')
const version = checkReturn(shell.exec('git log --pretty=format:"%s" HEAD^0 -1', { silent : true })).stdout
const version = checkReturn(shell.exec('git log --pretty=format:"%s" HEAD~0 -1', { silent : true })).stdout
checkReturn(shell.exec(`git tag -d v${version}`, { silent : true }))

console.info('[Step-5]', 'Push...', '\n')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatie/git-scripts",
"version": "0.7.10",
"version": "0.7.11",
"description": "Git Hooks Integration for Chatie Projects",
"directories": {
"doc": "docs",
Expand Down