From fb1ec50ea893ec92626a952f4e34d9176ea78dbc Mon Sep 17 00:00:00 2001 From: developomp Date: Sat, 26 Feb 2022 21:11:22 +0900 Subject: [PATCH] added node setup action --- .github/workflows/frontend.yml | 6 ++++++ .github/workflows/functions.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 289a425..c03ee74 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -15,6 +15,12 @@ jobs: - name: Checkout Repo uses: actions/checkout@master + - uses: actions/setup-node@v2 + with: + node-version: 16 + cache: npm + cache-dependency-path: frontend/package-lock.json + - name: Install Dependencies run: npm --prefix frontend install diff --git a/.github/workflows/functions.yml b/.github/workflows/functions.yml index 006ab92..27920e3 100644 --- a/.github/workflows/functions.yml +++ b/.github/workflows/functions.yml @@ -15,6 +15,12 @@ jobs: - name: Checkout Repo uses: actions/checkout@master + - uses: actions/setup-node@v2 + with: + node-version: 16 + cache: npm + cache-dependency-path: functions/package-lock.json + - name: Install Dependencies run: npm --prefix functions install