0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-21 18:38:57 +01:00

Publishing to maven central via 'yarn maven' (#1171)

This commit is contained in:
Lipis 2023-11-07 01:59:52 +02:00 committed by GitHub
parent d1b88d1dfa
commit 3a88efa4b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

4
maven.sh Executable file
View File

@ -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"

View File

@ -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"
}
}