From 530e9748d7f2d4826ccffaa40dea2f137f8f17a9 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 21 Feb 2023 15:13:22 -0700 Subject: [PATCH] Fixes build env --- .github/actions/yarn-build/action.yml | 31 +++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/actions/yarn-build/action.yml b/.github/actions/yarn-build/action.yml index ba88ea2d29..89e55cb2d4 100644 --- a/.github/actions/yarn-build/action.yml +++ b/.github/actions/yarn-build/action.yml @@ -1,7 +1,5 @@ name: Production Build description: "Creates a production build, caches it and restores if necessary" -env: - node_version: v16.x inputs: DATABASE_URL: required: true @@ -72,6 +70,35 @@ runs: - name: Next.js production build if: steps.prod-build-cache.outputs.cache-hit != 'true' shell: bash + env: + DATABASE_URL: ${{ inputs.DATABASE_URL }} + NEXT_PUBLIC_WEBAPP_URL: ${{ inputs.NEXT_PUBLIC_WEBAPP_URL }} + NEXT_PUBLIC_WEBSITE_URL: ${{ inputs.NEXT_PUBLIC_WEBSITE_URL }} + NEXTAUTH_SECRET: ${{ inputs.NEXTAUTH_SECRET }} + GOOGLE_API_CREDENTIALS: ${{ inputs.GOOGLE_API_CREDENTIALS }} + GOOGLE_LOGIN_ENABLED: ${{ inputs.GOOGLE_LOGIN_ENABLED }} + CALENDSO_ENCRYPTION_KEY: ${{ inputs.CALENDSO_ENCRYPTION_KEY }} + DAILY_API_KEY: ${{ inputs.DAILY_API_KEY }} + NEXT_PUBLIC_STRIPE_PUBLIC_KEY: ${{ inputs.NEXT_PUBLIC_STRIPE_PUBLIC_KEY }} + NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE: ${{ inputs.NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE }} + NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE: ${{ inputs.NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE }} + NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE: ${{ inputs.NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE }} + NEXT_PUBLIC_STRIPE_PREMIUM_NEW_PLAN_PRICE: ${{ inputs.NEXT_PUBLIC_STRIPE_PREMIUM_NEW_PLAN_PRICE }} + NEXT_PUBLIC_IS_PREMIUM_NEW_PLAN: ${{ inputs.NEXT_PUBLIC_IS_PREMIUM_NEW_PLAN }} + STRIPE_PRIVATE_KEY: ${{ inputs.STRIPE_PRIVATE_KEY }} + STRIPE_CLIENT_ID: ${{ inputs.STRIPE_CLIENT_ID }} + STRIPE_WEBHOOK_SECRET: ${{ inputs.STRIPE_WEBHOOK_SECRET }} + STRIPE_PRO_PLAN_PRODUCT_ID: ${{ inputs.STRIPE_PRO_PLAN_PRODUCT_ID }} + STRIPE_PREMIUM_PLAN_PRODUCT_ID: ${{ inputs.STRIPE_PREMIUM_PLAN_PRODUCT_ID }} + STRIPE_FREE_PLAN_PRODUCT_ID: ${{ inputs.STRIPE_FREE_PLAN_PRODUCT_ID }} + PAYMENT_FEE_PERCENTAGE: ${{ inputs.PAYMENT_FEE_PERCENTAGE }} + PAYMENT_FEE_FIXED: ${{ inputs.PAYMENT_FEE_FIXED }} + SAML_DATABASE_URL: ${{ inputs.SAML_DATABASE_URL }} + SAML_ADMINS: ${{ inputs.SAML_ADMINS }} + NEXTAUTH_URL: ${{ inputs.NEXTAUTH_URL }} + NEXT_PUBLIC_IS_E2E: ${{ inputs.NEXT_PUBLIC_IS_E2E }} + TURBO_TOKEN: ${{ inputs.TURBO_TOKEN }} + TURBO_TEAM: ${{ inputs.TURBO_TEAM }} run: | yarn db-seed yarn build