From 77b1f19fee655b6ee425fddb912e7ff238b07d98 Mon Sep 17 00:00:00 2001 From: Md Nasirul Haque Date: Sat, 2 Mar 2024 01:36:28 +0530 Subject: [PATCH] missing file added --- .github/workflows/setup-node/action.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/setup-node/action.yml diff --git a/.github/workflows/setup-node/action.yml b/.github/workflows/setup-node/action.yml new file mode 100644 index 0000000..47d3e91 --- /dev/null +++ b/.github/workflows/setup-node/action.yml @@ -0,0 +1,22 @@ +# File: .github/workflows/setup-node/action.yml +name: setup-node +description: "Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧" +runs: + using: "composite" + steps: + - name: Setup Node.js ⚙️ + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Cache dependencies ⚡ + id: cache_dependencies + uses: actions/cache@v3 + with: + path: node_modules + key: node-modules-${{ hashFiles('package-lock.json') }} + + - name: Install dependencies 🔧 + shell: bash + if: steps.cache_dependencies.outputs.cache-hit != 'true' + run: npm ci \ No newline at end of file