Refactor CI workflows and add Dependabot configuration (#67)

* fix: remove duplicate pnpm setup step in CI and build workflows

* fix: remove version specification for pnpm setup in CI and build workflows

* feat: add Dependabot configuration for GitHub Actions updates

* chore: auto-fix linting and formatting issues
This commit is contained in:
仓鼠
2026-06-04 11:24:59 +08:00
committed by GitHub
parent 20adf873fc
commit 8a2d8d67bd
4 changed files with 28 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions" # GitHub Actions
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
groups:
all:
patterns:
- "*"
+4 -4
View File
@@ -16,16 +16,16 @@ jobs:
with:
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "pnpm"
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: "11"
- name: Install dependencies
run: pnpm install --frozen-lockfile
+4 -5
View File
@@ -20,17 +20,16 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: "11"
- name: Install dependencies
run: pnpm install --frozen-lockfile