From c9512e62b97125ae1189c0e6b0b840c95dfd8b78 Mon Sep 17 00:00:00 2001 From: michelleyeoh Date: Sun, 18 Jan 2026 18:13:43 -0800 Subject: [PATCH] added running time envs --- .github/workflows/production.yaml | 15 ++++++++++++++- .github/workflows/staging.yaml | 16 ++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index ee98fa16..b3ef881a 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -19,7 +19,7 @@ jobs: - name: Install node uses: actions/setup-node@v4 with: - node-version: '21.7.3' + node-version: '22' cache: 'npm' - name: Install dependencies @@ -33,6 +33,19 @@ jobs: - name: Install Vercel CLI run: npm install --global vercel@latest + - name: Sync Environment Variables + run: | + printf "${{ secrets.MONGODB_URI }}" | vercel env add MONGODB_URI production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.AUTH_SECRET }}" | vercel env add AUTH_SECRET production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.TITO_AUTH_TOKEN }}" | vercel env add TITO_AUTH_TOKEN production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.HUB_ADMIN_PASSWORD }}" | vercel env add HUB_ADMIN_PASSWORD production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.HMAC_INVITE_SECRET }}" | vercel env add HMAC_INVITE_SECRET production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.SENDER_PWD }}" | vercel env add SENDER_PWD production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.CHECK_IN_CODE }}" | vercel env add CHECK_IN_CODE production --force --token=${{ secrets.VERCEL_TOKEN }} + env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + - name: Pull Vercel Environment Information run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} env: diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index a41f3630..a58dce79 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -21,7 +21,7 @@ jobs: - name: Install node uses: actions/setup-node@v4 with: - node-version: '21.7.3' + node-version: '22' cache: 'npm' - name: Install dependencies @@ -35,12 +35,24 @@ jobs: - name: Install Vercel CLI run: npm install --global vercel@latest + - name: Sync Environment Variables + run: | + printf "${{ secrets.MONGODB_URI }}" | vercel env add MONGODB_URI production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.AUTH_SECRET }}" | vercel env add AUTH_SECRET production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.TITO_AUTH_TOKEN }}" | vercel env add TITO_AUTH_TOKEN production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.HUB_ADMIN_PASSWORD }}" | vercel env add HUB_ADMIN_PASSWORD production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.HMAC_INVITE_SECRET }}" | vercel env add HMAC_INVITE_SECRET production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.SENDER_PWD }}" | vercel env add SENDER_PWD production --force --token=${{ secrets.VERCEL_TOKEN }} + printf "${{ secrets.CHECK_IN_CODE }}" | vercel env add CHECK_IN_CODE production --force --token=${{ secrets.VERCEL_TOKEN }} + env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + - name: Pull Vercel Environment Information run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - - name: Build Project on Github run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}