chore(main): release 5.6.0 #258
Workflow file for this run
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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- run: npm ci | |
- name: Prettify code | |
uses: creyD/[email protected] | |
with: | |
prettier_options: --write . | |
only_changed: true | |
commit_message: 'chore: format with prettier' | |
clean_node_folder: false | |
- name: Lint | |
# github adds inline annotation for compact or stylish format | |
# which is different than our default for local usage | |
run: npm run lint -- --format=compact | |
- name: Types | |
run: npm run typecheck | |
# we still want to check types if lint fails just to know everything | |
# and not peel errors to uncover new ones of different type | |
if: always() |