This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| release() { | |
| local root script url local_version remote_version | |
| root="$(git rev-parse --show-toplevel 2>/dev/null)" | |
| if [[ -z "$root" ]]; then | |
| echo "Not inside a git repository." | |
| return 1 | |
| fi | |
| script="$root/scripts/release.mjs" | |
| url="https://gist.githubusercontent.com/ArtDepartmentMJ/04da069c9df36a6db8e81a203f8460c5/raw/gistfile1.txt" | |
| if [[ ! -f "$script" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const VERSION = '1.0.3'; | |
| import { execSync } from 'child_process'; | |
| import { readFileSync } from 'fs'; | |
| import { resolve } from 'path'; | |
| import * as readline from 'readline/promises'; | |
| import { stdin as input, stdout as output } from 'process'; | |
| // Load .env from repo root | |
| try { |