Skip to content

Commit

Permalink
Voltaによるバージョン管理を追記 (#1315)
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
My-MC and Hiroshiba authored Jun 7, 2023
1 parent e80a339 commit 31cb0a1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check version

on:
pull_request:
paths:
- "/.node-version"
- "/package.json"
workflow_dispatch:

jobs:
check_node_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Check synchronize volta and .node_version
uses: My-MC/[email protected]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Fork して `git clone` し、次のコマンドを実行してください。
Node.js の管理ツール ([nvs](https://github.com/jasongin/nvs)など)を利用すると、
[.node-version](.node-version) を簡単にインストールすることができます。

また[Volta](https://volta.sh)による自動切り替えも使うことができます。

```bash
npm ci
```
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"node": ">=18.13.0 <19",
"npm": ">=8.19.3 <9"
},
"volta": {
"node": "18.13.0",
"npm": "8.19.3"
},
"scripts": {
"serve": "cross-env VITE_IS_ELECTRON=false vite",
"build": "cross-env VITE_IS_ELECTRON=false vite build",
Expand Down

0 comments on commit 31cb0a1

Please sign in to comment.