Skip to content

Commit

Permalink
Fix: Node.jsのバージョン取得にnode-version-fileを使うように (#1208)
Browse files Browse the repository at this point in the history
* Fix: Node.jsのバージョン取得を修正

* Change: build.ymlのsetup-nodeをnode-version-fileに

* Change: test.ymlをnode-version-fileに

* Fix: 消しすぎたのを修正

* Change: 残りのsetup-nodeも変更
  • Loading branch information
sevenc-nanashi authored Feb 16, 2023
1 parent ab5b664 commit 7f8e878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,10 @@ jobs:
echo "${str_config//$'\n'/\\n}" | "${{ matrix.sed_name }}" -e 's/from: VOICEVOX_ENGINE_DIR,\\n[ ]*to: ""/from: VOICEVOX_ENGINE_DIR, to: "MacOS\/"/' -e s/'\\n'/\\$'\n'/g > vue.config.js
cat vue.config.js
- name: Set output Node version
id: node-version
shell: bash
run: echo "NODE_VERSION=$(cat .node-version)" >> $GITHUB_OUTPUT

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "${{ steps.node-version.outputs.NODE_VERSION }}"
node-version-file: ".node-version"

- name: Cache Node packages
uses: actions/cache@v3
Expand Down Expand Up @@ -324,15 +319,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set output Node version
id: node-version
shell: bash
run: echo "NODE_VERSION=$(cat .node-version)" >> $GITHUB_OUTPUT

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "${{ steps.node-version.outputs.NODE_VERSION }}"
node-version-file: ".node-version"

- name: Cache Node packages
uses: actions/cache@v3
Expand Down Expand Up @@ -626,15 +616,10 @@ jobs:
run: |
df -h
- name: Set output Node version
id: node-version
shell: bash
run: echo "NODE_VERSION=$(cat .node-version)" >> $GITHUB_OUTPUT

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "${{ steps.node-version.outputs.NODE_VERSION }}"
node-version-file: ".node-version"

- name: Cache Node packages
uses: actions/cache@v3
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
cache-version: v2
steps:
- uses: actions/checkout@v3
- id: node-version
run: echo "NODE_VERSION=$(cat .node-version)" >> $GITHUB_OUTPUT

- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "${{ steps.node-version.outputs.NODE_VERSION }}"
node-version-file: ".node-version"

- uses: actions/cache@v3
with:
Expand Down

0 comments on commit 7f8e878

Please sign in to comment.