Skip to content

chore(deps): update actions/checkout action to v4.2.2 (#692) #1437

chore(deps): update actions/checkout action to v4.2.2 (#692)

chore(deps): update actions/checkout action to v4.2.2 (#692) #1437

Workflow file for this run

# This workflow uses npm to install the dependencies, and then lint the files with Prettier.
# This workflow is adapted from the one that the Prettier project uses.
# It is licensed under the MIT license.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Prettier
on:
push:
branches: [main]
pull_request:
branches: [main]
# Do not install Husky in GitHub Actions environment.
env:
HUSKY: 0
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies with npm
run: npm ci
- name: Lint files with Prettier
run: npm run prettier