Skip to content

Commit

Permalink
nodeのバージョンを固定
Browse files Browse the repository at this point in the history
  • Loading branch information
takahash committed Nov 22, 2024
1 parent 2a0a207 commit 8ba2b12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Restore node_modules from cache
uses: actions/cache@v4
with:
Expand All @@ -68,29 +69,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Restore node_modules from cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
- name: Lint
run: npm run lint

build:
runs-on: ubuntu-latest

steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"volta": {
"node": "22.11.0"
}
}

0 comments on commit 8ba2b12

Please sign in to comment.