From 9e73db02574b17ccfe7465a3f78c1a17f52c4784 Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Tue, 7 Jan 2025 21:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Fix=20eslint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pkg.pr.new.yml | 31 +++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pkg.pr.new.yml diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml new file mode 100644 index 0000000..86238ae --- /dev/null +++ b/.github/workflows/pkg.pr.new.yml @@ -0,0 +1,31 @@ +name: Pkg Pr New CI +on: + pull_request: + push: + branches: + - '!main' + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install bun + uses: oven-sh/setup-bun@v2 + + - name: Install deps + run: bun i + + - name: CI + run: bun run ci + + - name: Test + run: bun run test + + - name: Build + run: bun run build + + - name: Release + run: bunx pkg-pr-new publish diff --git a/package.json b/package.json index 90d6f57..c76001f 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-sort-keys-fix": "^1.1.2", "eslint-plugin-typescript-sort-keys": "^3.3.0", - "eslint-plugin-unicorn": "^56.0.1", + "eslint-plugin-unicorn": "^54.0.0", "eslint-plugin-unused-imports": "^3.2.0", "gatsby-remark-find-replace": "^0.3.0", "postcss-less": "^6.0.0",