Sha256: 445c9e26386a4f7bccea68e3597f7bffa0bf8004d8009eb4436e7a2f568088f1

Contents?: true

Size: 1009 Bytes

Versions: 42

Compression:

Stored size: 1009 Bytes

Contents

#!/usr/bin/env bash

set -e

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

lockfile=$(dirname $0)/../LOCK

if [[ -f "$lockfile" ]]; then
  terminal-notifier \
    -message "Skipping script; repository is locked." \
    -ignoreDnD \
    -title "email_data" \
    -group homebrew \
    &> /dev/null
  exit 1
fi

git reset --hard
git checkout main
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 packages." \
    -ignoreDnD \
    -title "email_data" \
    -group homebrew \
    &> /dev/null
  exit 1
fi

date "+%s" > VERSION

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

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

asdf local ruby 2.7.2

gem install bundler
bundle update

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

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

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
email_data-1607200035 bin/publish
email_data-1607057940 bin/publish
email_data-1606953034 bin/publish
email_data-1606845461 bin/publish
email_data-1606718902 bin/publish
email_data-1606620725 bin/publish
email_data-1606495330 bin/publish
email_data-1606361847 bin/publish
email_data-1606172235 bin/publish
email_data-1606065366 bin/publish
email_data-1605927397 bin/publish
email_data-1605814579 bin/publish
email_data-1605671224 bin/publish
email_data-1605588714 bin/publish
email_data-1605483437 bin/publish
email_data-1605433987 bin/publish
email_data-1605432951 bin/publish
email_data-1605293459 bin/publish
email_data-1605067682 bin/publish
email_data-1604944785 bin/publish