From 3a88efa4b420f5bb36e31706b6cc62375981ee68 Mon Sep 17 00:00:00 2001 From: Lipis Date: Tue, 7 Nov 2023 01:59:52 +0200 Subject: [PATCH] Publishing to maven central via 'yarn maven' (#1171) --- maven.sh | 4 ++++ package.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 maven.sh diff --git a/maven.sh b/maven.sh new file mode 100755 index 00000000..3a0a640a --- /dev/null +++ b/maven.sh @@ -0,0 +1,4 @@ +version=$(git describe --tags --abbrev=0) +url="https://www.webjars.org/deploy?webJarType=npm&nameOrUrlish=flag-icons&version=${version#v}" +echo "curl '${url}'" +curl "$url" diff --git a/package.json b/package.json index f3c15e99..5ffb70f4 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "svgo:all": "find flags | grep '\\.svg$' | xargs -Iz -n 1 yarn svgo z && yarn ids", "svgo:min": "find flags | grep '\\.svg$' | xargs -Iz -n 1 svgo z && yarn ids", "svgo": "svgo --pretty --indent=2 --precision=1", - "test": "yarn prettier --list-different" + "test": "yarn prettier --list-different", + "maven": "./maven.sh" } }