Skip to content

ci: fix node version #246

ci: fix node version

ci: fix node version #246

Workflow file for this run

name: 'Run tests on commit'
on: [push]
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_VERSION: 20.18.0
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://npm.pkg.github.com'
- name: Cache NPM dependencies
uses: pat-s/always-upload-cache@v2.1.5
with:
path: |
node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install dependencies
run: |
yarn config set //npm.pkg.github.com/download/:_authToken ${{ env.NODE_AUTH_TOKEN }}
yarn config set @tari-project:registry https://npm.pkg.github.com
yarn --frozen-lockfile
- name: Lint
run: yarn lint
- name: Typecheck
run: yarn typecheck