mirror of
https://github.com/primer/css.git
synced 2024-12-15 15:34:02 +03:00
13 lines
341 B
Bash
Executable File
13 lines
341 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
# pwd
|
|
package=$(jq -r .name package.json)
|
|
version=$(jq -r .version package.json)
|
|
published=$(npm info $package@$version version)
|
|
if [[ "$version" = "$published" ]]; then
|
|
echo "⚠️ $package@$version is already published!"
|
|
else
|
|
echo "📦 Publishing: $package@$version (published: $published)"
|
|
npm publish $@
|
|
fi
|