chore: update scripts to de794fbfbc6039a56ef3cad0e7a7eb2af61b1e66 #159
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
name: Format & Lint | |
on: | |
workflow_call: | |
secrets: | |
GH_TOKEN: | |
description: 'GitHub Token' | |
required: true | |
push: | |
branches: | |
- '*' | |
- '!deploy' | |
- '!gh-pages' | |
permissions: | |
contents: read | |
jobs: | |
format_and_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Retrieve git dependencies | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: v20.4 | |
- name: Run | |
run: | | |
echo "Installing dependencies..." | |
npm i | |
echo "Running formatter..." | |
npm run fmt | |
npm run lint |