Skip to content

chore(deps): update actions/checkout action to v4.1.5 (#669) #1354

chore(deps): update actions/checkout action to v4.1.5 (#669)

chore(deps): update actions/checkout action to v4.1.5 (#669) #1354

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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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