aboutsummaryrefslogtreecommitdiffhomepage
path: root/package.json
diff options
context:
space:
mode:
authorKevin Hoerr <kjhoerr@protonmail.com>2023-02-22 17:51:37 -0500
committerGitHub <noreply@github.com>2023-02-22 17:51:37 -0500
commit1553549c7fc51972cd028a66517b2ea82c851326 (patch)
treecbec888af6018684319ed82f9afd9032c7eaafca /package.json
parenta6eee6d758847ec5e95ed7ff4e909e76625ee589 (diff)
downloadsubmelon.dev-1553549c7fc51972cd028a66517b2ea82c851326.tar.gz
submelon.dev-1553549c7fc51972cd028a66517b2ea82c851326.tar.bz2
submelon.dev-1553549c7fc51972cd028a66517b2ea82c851326.zip
Publish badge (#103)
* Add last publish badge * Run post-build command in workflow
Diffstat (limited to 'package.json')
-rw-r--r--package.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json
index b8b7e68..e8aae1f 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,8 @@
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean",
- "lint": "eslint src --ext ts --ext tsx --ext js --ext jsx"
+ "lint": "eslint src --ext ts --ext tsx --ext js --ext jsx",
+ "post-build": "badgen -j \"Last Publish\" -s \"$(date --date=\"@$(cat gatsby-config.ts | grep 'version' | grep -oe '[0-9]*')\" -I)\" -c blue > public/publish-badge.svg"
},
"dependencies": {
"babel-plugin-styled-components": "^2.0.7",
@@ -44,6 +45,7 @@
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.49.0",
+ "badgen-cli": "^0.2.0",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",