diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5fd4243..fbfe6fa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,11 +18,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - fetch-depth: 0 - - uses: actions/setup-node@v3 - with: - node-version: "14" + node-version: "latest" - name: Prettier check run: | # if you encounter error, rerun the command below and commit the changes diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b64a9c6..a75631b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -18,7 +18,7 @@ concurrency: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -34,7 +34,7 @@ jobs: - run: mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./book @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/Makefile b/Makefile index bdcb781..01003fe 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ lint: - npx prettier@2.7.1 . --check + npx prettier@3.1.1 . --check format: - npx prettier@2.7.1 --write . + npx prettier@3.1.1 --write .