otoyo/astro-notion-blog

I got a update error afer I modified a file.

lynnww opened this issue · 2 comments

lynnww commented

Describe the bug

I add a Comments.astro file in component directory, and I modified the [slug].astro. When I commit the files , github give me some error like this:
image
image
So I updated the lint.yml like this
steps: - name: Check out Git repository uses: actions/checkout@v3 with: node-version: 16
Then I recommit the files and it continue to report error:
image

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'src/pages/post/[slug].astro'
  2. Click on 'edit this file' and make some change on it.
  3. Commit and it report error
    image
otoyo commented

Run npm run lint in your local so that you can see where those errors came from.
If it passes, run npm run format to format your code automatically.

otoyo commented

FYI: I have updated the Node version and the runner versions of GitHub Actions so the warnings should disappear.
#193