Skip to content

Commit 0fb037e

Browse files
committed
ci: Move the package.json version check to be linux only
1 parent fd54c3e commit 0fb037e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

run-release.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ function run() {
2020
fi
2121
}
2222

23-
echo "==> Checking package.json is up to date"
24-
version=$(run ./jk run std/version.jk)
25-
if [ "$version" != "$tag" ]; then
26-
echo "error: releasing $tag but std/package.json references $version"
27-
exit 1
28-
fi
29-
3023
echo "==> Creating $tag release"
3124
run github-release release \
3225
--user $user \
@@ -60,6 +53,13 @@ if [ $os != "linux" ]; then
6053
exit 0
6154
fi
6255

56+
echo "==> Checking package.json is up to date"
57+
version=$(run ./$binary run std/version.jk)
58+
if [ "$version" != "$tag" ]; then
59+
echo "error: releasing $tag but std/package.json references $version"
60+
exit 1
61+
fi
62+
6363
echo "==> Uploading npm module"
6464
if [ -z "$NPM_TOKEN" ]; then
6565
echo "error: NPM_TOKEN needs to be defined for pushing npm modules"

0 commit comments

Comments
 (0)