mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-31 02:24:53 +00:00
update all workflow files to use the .node-version file in the root of the repo
This commit is contained in:
17
.github/workflows/check-formatting.yml
vendored
17
.github/workflows/check-formatting.yml
vendored
@@ -21,14 +21,21 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.JS
|
||||
# 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: 16.x
|
||||
cache: 'npm'
|
||||
node-version: ${{ steps.node-version.outputs.version }}
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
- name: install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Verify formatting
|
||||
- name: verify formatting
|
||||
run: npm run format:check
|
||||
|
||||
Reference in New Issue
Block a user