From e21e35792dc264c057ca6d0abe1df98175f34fbc Mon Sep 17 00:00:00 2001 From: Alexander Wang <98280966+AlexanderWangY@users.noreply.github.com> Date: Sun, 25 Feb 2024 01:15:48 -0500 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b26d3408b..c90ca79af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,12 +23,13 @@ jobs: run: npm ci working-directory: server/ - - name: Set up environment variables - run: | - mkdir private_key - echo ${{ secrets.SERVICE_ACCOUNT_SECRET }} > private_key/private.json - working-directory: server/src - + - name: Create service account JSON + id: create-service-acount-json + uses: jsdaniell/create-json@1.1.2 + with: + name: "server/src/private_key/private.json" + json: ${{ secrets.SERVICE_ACCOUNT_SECRET }} + - name: Compile TypeScript files run: npx tsc working-directory: server/