ソースを参照

fix release script semver bump

Nick Sweeting 5 年 前
コミット
80863ad050
2 ファイル変更19 行追加18 行削除
  1. 2 1
      bin/release.sh
  2. 17 17
      package.json

+ 2 - 1
bin/release.sh

@@ -45,7 +45,8 @@ echo "[*] Bumping VERSION from $OLD_VERSION to $NEW_VERSION"
 contents="$(jq ".version = \"$NEW_VERSION\"" "$REPO_DIR/package.json")" && \
 echo "${contents}" > package.json
 git add "$REPO_DIR/docs"
-git add "$VERSION_FILE"
+git add "$REPO_DIR/package.json"
+git add "$REPO_DIR/package-lock.json"
 
 echo "[*] Cleaning up build dirs"
 cd "$REPO_DIR"

+ 17 - 17
package.json

@@ -1,19 +1,19 @@
 {
-	"name": "archivebox",
-	"version": "0.4.17",
-	"description": "ArchiveBox: The self-hosted internet archive",
-	"author": "Nick Sweeting <[email protected]>",
-	"license": "MIT",
-	"scripts": {
-		"archivebox": "./bin/archive"
-	},
-	"bin": {
-		"archivebox-node": "./bin/archive",
-		"single-file": "./node_modules/.bin/single-file",
-		"readability-extractor": "./node_modules/.bin/single-file"
-	},
-	"dependencies": {
-		"readability-extractor": "git+https://github.com/pirate/readability-extractor.git",
-		"single-file": "git+https://github.com/gildas-lormeau/SingleFile.git"
-	}
+  "name": "archivebox",
+  "version": "0.4.17",
+  "description": "ArchiveBox: The self-hosted internet archive",
+  "author": "Nick Sweeting <[email protected]>",
+  "license": "MIT",
+  "scripts": {
+    "archivebox": "./bin/archive"
+  },
+  "bin": {
+    "archivebox-node": "./bin/archive",
+    "single-file": "./node_modules/.bin/single-file",
+    "readability-extractor": "./node_modules/.bin/single-file"
+  },
+  "dependencies": {
+    "readability-extractor": "git+https://github.com/pirate/readability-extractor.git",
+    "single-file": "git+https://github.com/gildas-lormeau/SingleFile.git"
+  }
 }