From 7efe976d7a419bb5c7dbb690f09ec0198c2a4954 Mon Sep 17 00:00:00 2001 From: Karl Cardenas <29551334+karl-cardenas-coding@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:51:11 -0700 Subject: [PATCH] chore: add nodejs (#3987) (cherry picked from commit 2264248306cae4aa7518d8b933b10086a66d1481) --- .github/workflows/api_format.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/api_format.yaml b/.github/workflows/api_format.yaml index 212205bfa3..5fd033604b 100644 --- a/.github/workflows/api_format.yaml +++ b/.github/workflows/api_format.yaml @@ -35,6 +35,12 @@ jobs: with: token: ${{ steps.import-secrets.outputs.VAULT_GITHUB_TOKEN }} + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + - name: Determine branch name id: extract_branch run: | @@ -44,6 +50,8 @@ jobs: echo "GITHUB_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV fi + - run: npm ci + - name: Format API run: make api