Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop watch mode for test + typecheck scripts in codegen #13

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions scripts/update-codegen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -x

# exit if gh command not installed
if ! command -v gh &> /dev/null
then
Expand Down Expand Up @@ -34,7 +36,7 @@ if [ -z "$types_diff" ]; then
exit 1
fi

npm run test && npm run typecheck
npm run test --watch=false && npm run typecheck --watch=false

if [ $? -ne 0 ]; then
echo "Tests or typecheck failed, exiting"
Expand All @@ -47,6 +49,6 @@ git commit -m "chore: update generated files"
npx bumpp patch -y

echo "pick latest version here"
gh release create -d --generate-notes
gh release create -d --generate-notes

echo "go to url above and publish release to publish to npm"
echo "go to url above and publish release to publish to npm"