chore(deps): update actions/setup-node action to v4.1.0 (#693) #1440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
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 |