ci(github): fixed hash files #232
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |