diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 668e448aa..12c5208ad 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -220,7 +220,7 @@ jobs: - name: Build JS Bundle shell: bash working-directory: apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript - run: npm install && npm run build + run: npm install && ./auto_rollup.sh - name: Verify Latest shell: bash run: | diff --git a/apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/auto_rollup.sh b/apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/auto_rollup.sh index 1dd8a5e99..436592697 100755 --- a/apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/auto_rollup.sh +++ b/apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/auto_rollup.sh @@ -3,7 +3,7 @@ set -e SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) output_file="$SCRIPT_DIR/../ApolloCodegenFrontendBundle.swift" -$( cd "$SCRIPT_DIR" && npm run build ) +cd "$SCRIPT_DIR" && npm run build minJS=$(cat "$SCRIPT_DIR/dist/ApolloCodegenFrontend.bundle.js") printf "%s%s%s" "let ApolloCodegenFrontendBundle: String = #\"" "$minJS" "\"#" > $output_file exit 0