Author SHA1 Message Date
Anthony Fu 587af64fea ci: bump pnpm/action-setup to v6 for pnpm 11 global bin PATH fix
v4 leaves the v11 isolated global bin dir ($PNPM_HOME/bin) out of PATH,
breaking `pnpm i -g @antfu/ni`. v6 ships pnpm 11 support and the PATH fix.
2026-05-19 12:00:46 +09:00
Anthony Fu 1cd07a98ff chore: migrate to pnpm v11, switch to nano-staged, add skills-npm
- Bump packageManager to pnpm@11.1.3; rename onlyBuiltDependencies to allowBuilds
- Replace lint-staged with nano-staged
- Add skills-npm via prepare chain
- Set core.hooksPath to .githooks so simple-git-hooks works in worktrees
2026-05-19 11:57:15 +09:00
5 changed files with 854 additions and 1270 deletions

No files matched your search

+46 -12
View File
@@ -1,19 +1,53 @@
name: Unit Test name: CI
on: on:
push: push:
branches: [main] branches:
pull_request: - main
branches: [main]
permissions: {} pull_request:
branches:
- main
jobs: jobs:
unit-test: lint:
uses: sxzz/workflows/.github/workflows/unit-test.yml@main runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
# coverage: - run: pnpm i -g @antfu/ni
# uses: sxzz/workflows/.github/workflows/coverage.yml@main - run: nci
# needs: unit-test - run: nr lint
# permissions: - run: nr typecheck
# id-token: write
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
with:
run_install: false
- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm i -g @antfu/ni
- run: nci
- run: nr build
- run: nr test
+1 -1
View File
@@ -7,7 +7,7 @@ on:
jobs: jobs:
release: release:
uses: sxzz/workflows/.github/workflows/release.yml@main uses: sxzz/workflows/.github/workflows/release.yml@v1
with: with:
publish: true publish: true
permissions: permissions:
+2 -13
View File
@@ -2,7 +2,7 @@
"name": "pkg-placeholder", "name": "pkg-placeholder",
"type": "module", "type": "module",
"version": "0.0.0", "version": "0.0.0",
"packageManager": "pnpm@11.15.1", "packageManager": "pnpm@11.1.3",
"description": "_description_", "description": "_description_",
"author": "Anthony Fu <anthonyfu117@hotmail.com>", "author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT", "license": "MIT",
@@ -27,24 +27,13 @@
"build": "tsdown", "build": "tsdown",
"dev": "tsdown --watch", "dev": "tsdown --watch",
"lint": "eslint", "lint": "eslint",
"prepack": "nr build", "prepublishOnly": "nr build",
"release": "bumpp", "release": "bumpp",
"start": "tsx src/index.ts", "start": "tsx src/index.ts",
"test": "pnpm run build && vitest", "test": "pnpm run build && vitest",
"typecheck": "tsc", "typecheck": "tsc",
"prepare": "git config core.hooksPath .githooks && simple-git-hooks && skills-npm" "prepare": "git config core.hooksPath .githooks && simple-git-hooks && skills-npm"
}, },
"scripts-info": {
"build": "Build the library for publishing",
"dev": "Rebuild on change during development",
"lint": "Check for code style issues",
"prepack": "Build before publishing",
"release": "Bump version and publish a release",
"start": "Run the entry file",
"test": "Run the test suite",
"typecheck": "Check types",
"prepare": "Set up git hooks and skills"
},
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "catalog:cli", "@antfu/eslint-config": "catalog:cli",
"@antfu/ni": "catalog:cli", "@antfu/ni": "catalog:cli",
+793 -1231
View File
File diff suppressed because it is too large. Load diff
+12 -13
View File
@@ -3,7 +3,6 @@ ignoreWorkspaceRootCheck: true
minimumReleaseAgeExclude: minimumReleaseAgeExclude:
- '@types/node@25.9.0' - '@types/node@25.9.0'
- tsx@4.22.2 - tsx@4.22.2
- bumpp@12.0.0
shellEmulator: true shellEmulator: true
trustPolicy: no-downgrade trustPolicy: no-downgrade
@@ -15,26 +14,26 @@ packages:
catalogs: catalogs:
cli: cli:
'@antfu/eslint-config': ^9.1.0 '@antfu/eslint-config': ^9.0.0
'@antfu/ni': ^30.2.0 '@antfu/ni': ^30.1.0
bumpp: ^12.0.0 bumpp: ^11.1.0
eslint: ^10.7.0 eslint: ^10.4.0
nano-staged: ^1.0.2 nano-staged: ^1.0.2
publint: ^0.3.21 publint: ^0.3.21
simple-git-hooks: ^2.13.1 simple-git-hooks: ^2.13.1
skills-npm: ^1.2.0 skills-npm: ^1.1.1
tsdown: ^0.22.12 tsdown: ^0.22.0
tsx: ^4.23.1 tsx: ^4.22.2
typescript: ^6.0.3 typescript: ^6.0.3
vite: ^8.1.5 vite: ^8.0.13
inlined: inlined:
'@antfu/utils': ^9.3.0 '@antfu/utils': ^9.3.0
testing: testing:
tsdown-stale-guard: ^0.1.3 tsdown-stale-guard: ^0.1.2
tsnapi: ^1.0.0 tsnapi: ^0.3.3
vitest: ^4.1.10 vitest: ^4.1.6
types: types:
'@types/node': ^26.1.1 '@types/node': ^25.9.0
allowBuilds: allowBuilds:
esbuild: true esbuild: true
simple-git-hooks: true simple-git-hooks: true