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-1604907377 bin/publish
email_data-1604799858 bin/publish
email_data-1604735754 bin/publish
email_data-1604703468 bin/publish
email_data-1604569392 bin/publish
email_data-1604444717 bin/publish
email_data-1604325875 bin/publish
email_data-1604239223 bin/publish
email_data-1604097095 bin/publish
email_data-1604010434 bin/publish
email_data-1603923660 bin/publish
email_data-1603817241 bin/publish
email_data-1603707709 bin/publish
email_data-1603621117 bin/publish
email_data-1603499092 bin/publish
email_data-1603398147 bin/publish
email_data-1603311369 bin/publish
email_data-1603224590 bin/publish
email_data-1603137851 bin/publish
email_data-1603054658 bin/publish