Skip to content

Commit

Permalink
Merge pull request #348 from A-kirami/ci/node-version-file
Browse files Browse the repository at this point in the history
feat(ci): Retrieve the Node.js version from package.json
  • Loading branch information
MakinoharaShoko authored Dec 4, 2024
2 parents 4254f5a + 0bd4c3f commit f9b739b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-terre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
env:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build Stage 1
run: |
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
env:
Expand All @@ -144,7 +144,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
shell: bash
Expand All @@ -163,7 +163,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
shell: bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
env:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build Stage 1
run: |
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
env:
Expand All @@ -146,7 +146,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
shell: bash
Expand All @@ -165,7 +165,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
shell: bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
env:
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build Stage 1
run: |
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
env:
Expand All @@ -154,7 +154,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
shell: bash
Expand All @@ -175,7 +175,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: package.json
cache: 'yarn'
- name: Build
shell: bash
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
"**/electron/**"
]
},
"dependencies": {},
"devDependencies": {
"concurrently": "^7.2.2",
"iconv-lite": "^0.6.3"
},
"engines": {
"node": "18"
}
}

0 comments on commit f9b739b

Please sign in to comment.