Sha256: 1001a2d89744f25268306c8cffdb0f82e09bb8668247739f9920126a6c424cff

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

#!/usr/bin/env bash

set -e

source $HOME/.zsh/exports.sh
source $HOME/.zsh/asdf.sh

git pull --rebase
git push

./bin/sync

git_status=$(git status 2> /dev/null | tr "\\n" " ")

if [[ "$git_status" =~ "nothing to commit" ]]; then
  terminal-notifier \
    -message "No changes detected. Skipping new gem." \
    -ignoreDnD \
    -title "email_data" \
    -group homebrew \
    &> /dev/null
  exit
fi

date "+%s" > VERSION

version=$(cat VERSION)
package_json=$(cat package.json | jq --arg version "$version" '.version = $version')

echo $package_json | jq --tab > package.json

git add .
git commit -m "Bump up version."
git push

./bin/publish-gem
./bin/publish-npm

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_data-1601161287 bin/publish