From 2f081e157f30f8a1b0e73d1f203636cb884bb680 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 14 Jul 2025 22:45:01 +0800 Subject: [PATCH 1/3] chore: add lint workflow --- .github/workflows/lint.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..83af59e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,36 @@ +name: Lint + +# Controls when the action will run. +on: + # Triggers the workflow on pull request events but only for the main branch + pull_request: + branches: [main] + push: + branches: [main] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + lint: + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Pnpm + run: npm i -g corepack@latest --force && corepack enable + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: "pnpm" + + - name: Install Dependencies + run: pnpm install + + - name: Run Lint + run: pnpm run lint From 74b793a5ad9387ef4697fc5ad1a0bfa712637cc6 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 14 Jul 2025 22:45:19 +0800 Subject: [PATCH 2/3] fix --- pnpm-workspace.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d22478d..906fe26 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,6 @@ packages: - - 'playground' + - playground + +onlyBuiltDependencies: + - core-js + - simple-git-hooks From 4bee0771c78c43f82b093c53a52ebe3a95f6ae9b Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 14 Jul 2025 22:49:56 +0800 Subject: [PATCH 3/3] fix --- .github/workflows/lint.yml | 3 +++ .github/workflows/test.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 83af59e..bc4b406 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,6 +10,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +permissions: + contents: read + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: lint: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60d59c5..9ec204d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +permissions: + contents: read + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: test: