From ef643b22008c62efebeb5c0537c9b841dd9083c0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 28 Dec 2023 13:33:34 -0500 Subject: [PATCH 1/3] feat: bump actions to use node20 runtime Signed-off-by: Rui Chen --- .github/workflows/lint.yml | 6 ++---- .github/workflows/pages.yml | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5fd4243..dbbc769 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: "20" - 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 From 19f795a209982bcf45d61d4dadc2282ca5b6cace Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 28 Dec 2023 13:33:49 -0500 Subject: [PATCH 2/3] chore: update prettier to v3 Signed-off-by: Rui Chen --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 . From 15cba768d117c54d645b725a593b711abd814475 Mon Sep 17 00:00:00 2001 From: Jiacai Liu Date: Fri, 29 Dec 2023 10:08:59 +0800 Subject: [PATCH 3/3] Update .github/workflows/lint.yml --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dbbc769..fbfe6fa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "latest" - name: Prettier check run: | # if you encounter error, rerun the command below and commit the changes