From 7a8386ac90b3510c60d16955e487f03b242df99a Mon Sep 17 00:00:00 2001 From: JounQin Date: Fri, 27 Oct 2023 13:36:54 +0800 Subject: [PATCH] ci: fix CI issues --- .github/workflows/ci.yml | 6 ++---- .github/workflows/codeql.yml | 2 +- .github/workflows/release.yml | 6 ++---- .github/workflows/size-limit.yml | 6 ++---- .github/workflows/vercel.yml | 2 +- package.json | 2 +- packages/autocorrect/README.md | 1 + packages/pkg/README.md | 1 + packages/sh/README.md | 1 + packages/sql/README.md | 2 ++ 10 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb55a681..da056f74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,15 +19,13 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v2 - with: - version: latest - name: Setup Node.js ${{ matrix.node }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: pnpm diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2f7089c0..f6c7acf6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e08f1c33..19f420ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,18 +11,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - name: Setup pnpm uses: pnpm/action-setup@v2 - with: - version: latest - name: Setup Node.js 16 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 cache: pnpm diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 420dd312..2ab786c7 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -9,15 +9,13 @@ jobs: size-limit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v2 - with: - version: latest - name: Setup Node.js LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: lts/* cache: pnpm diff --git a/.github/workflows/vercel.yml b/.github/workflows/vercel.yml index db60c1ff..1eea825c 100644 --- a/.github/workflows/vercel.yml +++ b/.github/workflows/vercel.yml @@ -10,7 +10,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check Branch id: branch diff --git a/package.json b/package.json index 5536c4b4..f7812343 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "workspaces": [ "packages/*" ], - "packageManager": "pnpm@8.6.7", + "packageManager": "pnpm@8.9.2", "scripts": { "build": "run-p build:*", "build:r": "r -f cjs", diff --git a/packages/autocorrect/README.md b/packages/autocorrect/README.md index faf048ee..8f206881 100644 --- a/packages/autocorrect/README.md +++ b/packages/autocorrect/README.md @@ -38,6 +38,7 @@ Once installed, [Prettier plugins](https://prettier.io/docs/en/plugins.html) mus ``` Then: + ```sh # npx npx prettier --write writing.md diff --git a/packages/pkg/README.md b/packages/pkg/README.md index 1b5c2cbb..705123e9 100644 --- a/packages/pkg/README.md +++ b/packages/pkg/README.md @@ -33,6 +33,7 @@ Once installed, [Prettier plugins](https://prettier.io/docs/en/plugins.html) mus ``` Then: + ```sh # npx npx prettier --write package.json diff --git a/packages/sh/README.md b/packages/sh/README.md index 03548208..1528b27c 100644 --- a/packages/sh/README.md +++ b/packages/sh/README.md @@ -42,6 +42,7 @@ Once installed, [Prettier plugins](https://prettier.io/docs/en/plugins.html) mus ``` Then: + ```sh # npx npx prettier --write script.sh diff --git a/packages/sql/README.md b/packages/sql/README.md index 909bc732..50331b2f 100644 --- a/packages/sql/README.md +++ b/packages/sql/README.md @@ -36,7 +36,9 @@ Once installed, [Prettier plugins](https://prettier.io/docs/en/plugins.html) mus "plugins": ["prettier-plugin-sql"] } ``` + Then: + ```sh # npx npx prettier --write db.sql