Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use node-version-file parameter instead of an extra step
  • Loading branch information
James M. Greene authored and James M. Greene committed Apr 14, 2023
1 parent 9c5eb69 commit 425b204
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 40 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/check-dist.yml
Expand Up @@ -23,17 +23,10 @@ jobs:
steps:
- uses: actions/checkout@v3

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: '.node-version'
cache: npm

- name: install dependencies
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/check-formatting.yml
Expand Up @@ -21,17 +21,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: '.node-version'
cache: npm

- name: install dependencies
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/check-linter.yml
Expand Up @@ -21,17 +21,10 @@ jobs:
- name: checkout
uses: actions/checkout@v3

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: '.node-version'
cache: npm

- name: install dependencies
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/rebuild-dependabot-prs.yml
Expand Up @@ -26,17 +26,10 @@ jobs:
with:
token: ${{ secrets.PAGES_AUTOMATION_PAT }}

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: '.node-version'
cache: npm

- name: install dependencies
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/test.yml
Expand Up @@ -16,17 +16,10 @@ jobs:
- name: checkout
uses: actions/checkout@v3

# check the node version from the .node-version file
- name: fetch node version
id: node-version
run: |
version=$(cat .node-version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.node-version.outputs.version }}
node-version-file: '.node-version'
cache: npm

- name: install dependencies
Expand Down

0 comments on commit 425b204

Please sign in to comment.