Explorar el Código

Increment version and add "postpublish" auth-tagging script

Caleb Porzio hace 5 años
padre
commit
72430cd1af
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      package.json

+ 3 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "main": "dist/alpine.js",
   "name": "alpinejs",
-  "version": "1.1.5",
+  "version": "1.1.6",
   "repository": {
     "type": "git",
     "url": "git://github.com/alpinejs/alpine.git"
@@ -10,7 +10,8 @@
     "watch": "npx rollup -c -w",
     "build": "npx rollup -c",
     "test": "npx jest",
-    "test:debug": "node --inspect node_modules/.bin/jest --runInBand"
+    "test:debug": "node --inspect node_modules/.bin/jest --runInBand",
+    "postpublish" : "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
   },
   "author": "Caleb Porzio",
   "license": "MIT",