From b6b2e6e4312f36e5c06269aa55b7e292b3be5610 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 24 Sep 2025 08:51:33 +0900 Subject: [PATCH] chore: simplify scripts --- .github/workflows/release.yml | 25 +++---------------------- .npmrc | 2 -- pnpm-workspace.yaml | 9 ++++++++- 3 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 .npmrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23d0808..6877b39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,28 +7,9 @@ on: jobs: release: - runs-on: ubuntu-latest + uses: sxzz/workflows/.github/workflows/release.yml@v1 + with: + publish: true permissions: contents: write id-token: write - - steps: - - uses: actions/checkout@v5 - with: - persist-credentials: false - fetch-depth: 0 - - - uses: pnpm/action-setup@v4 - - name: Set node - uses: actions/setup-node@v5 - with: - node-version: lts/* - cache: pnpm - - - run: npx changelogithub - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - run: pnpm install - - run: npm i -g npm@latest && pnpm publish --no-git-checks diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 7969496..0000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -ignore-workspace-root-check=true -shell-emulator=true diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e6f18e5..578c540 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,9 @@ packages: - docs +ignoreWorkspaceRootCheck: true +shellEmulator: true + catalog: '@antfu/eslint-config': ^5.2.1 '@antfu/ni': ^25.0.0 @@ -52,9 +55,13 @@ catalogs: vitepress-plugin-group-icons: ^1.6.3 vue: ^3.5.18 vue-tsc: ^3.0.6 - prod: '@jridgewell/remapping': ^2.3.5 acorn: ^8.15.0 picomatch: ^4.0.3 webpack-virtual-modules: ^0.6.2 + +onlyBuiltDependencies: + - core-js + - esbuild + - simple-git-hooks