mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-08 08:06:15 +00:00
Use node-version-file parameter instead of an extra step
This commit is contained in:
9
.github/workflows/check-dist.yml
vendored
9
.github/workflows/check-dist.yml
vendored
@@ -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
|
||||
|
||||
9
.github/workflows/check-formatting.yml
vendored
9
.github/workflows/check-formatting.yml
vendored
@@ -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
|
||||
|
||||
9
.github/workflows/check-linter.yml
vendored
9
.github/workflows/check-linter.yml
vendored
@@ -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
|
||||
|
||||
9
.github/workflows/rebuild-dependabot-prs.yml
vendored
9
.github/workflows/rebuild-dependabot-prs.yml
vendored
@@ -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
|
||||
|
||||
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user