We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7da3e1 commit 724e236Copy full SHA for 724e236
.github/scripts/is_release_for_package.sh
@@ -0,0 +1,15 @@
1
+#!/bin/sh
2
+
3
+# This script checks if the specified package has changesets in the current commit.
4
5
+set -eu
6
7
+if [ $# -lt 1 ]; then
8
+ echo "Error: Package name is required as the first argument." >&2
9
+ exit 1
10
+fi
11
12
+PACKAGE_NAME=$1
13
+PACKAGE_CHANGES=$(node -e "require('@changesets/read').default(process.cwd()).then(result => console.log(result.flatMap(changeset => changeset.releases.flatMap(release => release.name)).includes('${PACKAGE_NAME}')))")
14
15
+echo "${PACKAGE_CHANGES}"
0 commit comments