Skip to content

Commit

Permalink
add .github/workflows/lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Jan 8, 2024
1 parent 15cc863 commit 18736df
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: push

name: lint
jobs:
tsc:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Extract node version
run: echo "NODE_VERSION=$(cat .node_version)" >> $GITHUB_ENV
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- name: lint
run: npm run lint

1 change: 1 addition & 0 deletions .node_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.10.0

0 comments on commit 18736df

Please sign in to comment.