Skip to content

Commit fc9075d

Browse files
committed
Addinig tag automation to git
1 parent 8697657 commit fc9075d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "highlightjs-structured-text",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "highlight.js syntax definition for Structured Text IEC 61131-3 language",
55
"main": "src/iecst.js",
66
"scripts": {
@@ -14,6 +14,7 @@
1414
"type": "git",
1515
"url": "https://github.com/highlightjs/highlightjs-structured-text.git"
1616
},
17+
"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",
1718
"keywords": [
1819
"ST",
1920
"Structured Text",

0 commit comments

Comments
 (0)