Skip to content

Commit

Permalink
Remove knowledge of the Node version from GitHub Actions
Browse files Browse the repository at this point in the history
The 'setup-node' action has added support for reading the Node version from the package.json file.

Refs 55f834e, actions/setup-node#485
  • Loading branch information
thewilkybarkid committed Sep 29, 2022
1 parent 32d304d commit 3a4f205
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: 'Set up Node.js'
uses: actions/setup-node@v3.5.0
with:
node-version: 16
node-version-file: package.json
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- name: 'Set up Node.js'
uses: actions/setup-node@v3.5.0
with:
node-version: 16
node-version-file: package.json
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
Expand All @@ -101,7 +101,7 @@ jobs:
- name: 'Set up Node.js'
uses: actions/setup-node@v3.5.0
with:
node-version: 16
node-version-file: package.json
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
- name: 'Set up Node.js'
uses: actions/setup-node@v3.5.0
with:
node-version: 16
node-version-file: package.json
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
- name: 'Set up Node.js'
uses: actions/setup-node@v3.5.0
with:
node-version: 16
node-version-file: package.json
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
Expand Down

0 comments on commit 3a4f205

Please sign in to comment.