Skip to content

chore(deps): update dependency ink to v7 - autoclosed #38

chore(deps): update dependency ink to v7 - autoclosed

chore(deps): update dependency ink to v7 - autoclosed #38

Workflow file for this run

name: Format and lint
on:
push:
branches: ["*"]
pull_request:
types: [opened, synchronize]
permissions:
contents: write
jobs:
format-lint:
name: Format and lint code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref || github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- name: Check formatting
run: deno fmt --check
continue-on-error: true
- name: Lint code
run: deno lint
continue-on-error: true
- name: Type check
run: deno check src/main.ts
continue-on-error: true
- name: Format code
run: deno fmt
- name: Check for changes
id: git-check
run: |
if git status --porcelain | grep '.*'; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "changes=false" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
if: steps.git-check.outputs.changes == 'true' && github.event_name == 'push'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "style: auto-format code with deno fmt"
git push