Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voltaによるバージョン管理を追記 #1315

Merged
merged 8 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check version

on:
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved
pull_request:
branches:
- "**"
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved
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