E2B/.github/scripts/is_release.sh
Jakub Novák e894b4958f
[E2B-286] - Run release GHA only when really releasing (#114)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
2023-09-06 11:41:48 +02:00

10 lines
221 B
Bash
Executable File

#!/bin/sh
# This script checks if the current commit contains changesets.
set -eu
CHANGES=$(node -e "require('@changesets/read').default(process.cwd()).then(result => console.log(!!result.length))")
echo "${CHANGES}"