convert-csv-to-json 2.16.1 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "convert-csv-to-json",
3
- "version": "2.16.1",
3
+ "version": "2.17.0",
4
4
  "description": "Convert CSV to JSON",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "jest",
8
8
  "test-debug": "node --inspect-brk node_modules/.bin/jest --runInBand --detectOpenHandles",
9
- "version-patch": "npm version patch --force && npm publish && git push --follow-tags",
10
- "version-minor": "npm version minor --force && npm publish && git push --follow-tags",
11
- "version-major": "npm version major --force && npm publish && git push --follow-tags",
9
+ "version-patch": "npm version patch",
10
+ "version-minor": "npm version minor",
11
+ "version-major": "npm version major",
12
12
  "release": "./semantic-versioning.sh"
13
13
  },
14
14
  "repository": {
@@ -37,11 +37,13 @@ echo "New version successfully published."
37
37
 
38
38
  push_git_info(){
39
39
  echo "Publish git info...";
40
- TAG=$(git describe --tags --abbrev=0)
41
- git commit --amend -m "new release $TAG [skip ci]"
42
- echo "new commit message: $(git log -1 --pretty=format:"%s")"
43
- git push
44
- git push origin refs/tags/$TAG
40
+ TAG=$(git describe --tags --abbrev=0);
41
+ COMMIT_ID=$(git rev-parse HEAD);
42
+ git commit --amend -m "new release $TAG [skip ci]";
43
+ echo "new commit message: $(git log -1 --pretty=format:"%s")";
44
+ git tag $TAG $COMMIT_ID;
45
+ git push;
46
+ git push origin refs/tags/$TAG;
45
47
  }
46
48
 
47
49
  execute-new-release(){