Skip to content

ci(github): fixed hash files #232

ci(github): fixed hash files

ci(github): fixed hash files #232

Workflow file for this run

name: 'Node'
on:
push:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: 'Checkout 🛬'
uses: actions/checkout@v4
- name: 'Cache dependencies 📦'
id: cache-node_modules
uses: actions/cache@v4
with:
path: 'node_modules'
key: ${{ runner.os }}-node_module-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/workflows/node.yml') }}
- name: 'Setup node ⚙️'
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- name: 'Install dependencies 📥'
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci
- name: 'Build typescript 📦'
run: npm run build && find dist/main.js
- name: 'Lint code 💅🏻'
run: npm run lint
- name: 'Run test ✅'
run: npm run test