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/