mirror of
https://github.com/tlsnotary/website.git
synced 2026-01-08 14:33:54 -05:00
22 lines
581 B
YAML
22 lines
581 B
YAML
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
|