Triggered on tags matching v*.*.* - runs the quality gate (lint,
typecheck, format:check, the existing test suite, build) as
individual steps for clear failure attribution, then publishes to
this Gitea instance's own npm registry (dev.pivoine.art, unscoped
package name - Gitea's npm registry supports that directly, no
@owner/ rename needed).
The release version comes from the git tag (v1.0.0 -> 1.0.0 via
`npm pkg set`), patched into package.json only in the CI run, never
committed back. publishConfig.registry in package.json is a static
string (safe to commit); the auth token is supplied at publish time
via NODE_AUTH_TOKEN, written to a CI-generated user-level .npmrc by
actions/setup-node's registry-url option rather than a repo-committed
one - pnpm >=10.34.2/11.5.3 (this repo pins 11.21.0) blocks ${VAR}
expansion in repository-controlled npmrc/pnpm-workspace.yaml
specifically to stop a malicious repo from exfiltrating CI secrets
that way, so the token can't live in a committed .npmrc at all.
Verified locally end-to-end short of the actual registry upload:
lint/typecheck/format:check/test/build all pass, and
`pnpm publish --dry-run --no-git-checks` after a temporary version
bump confirms publishConfig.registry resolves to the right URL and
prepack (next build) fires automatically as part of publish.
One-time manual setup this can't do by itself (documented in the plan
file): a repo-scoped Gitea Personal Access Token with the `package`
Read&Write scope, stored as the GITEA_PACKAGE_TOKEN repo secret -
Gitea's own auto-injected GITEA_TOKEN explicitly cannot publish
packages (unimplemented per Gitea's own docs).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
96 lines
2.4 KiB
JSON
96 lines
2.4 KiB
JSON
{
|
|
"name": "triggershell",
|
|
"version": "0.1.0",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://dev.pivoine.art/valknar/triggershell.git"
|
|
},
|
|
"bin": {
|
|
"triggershell": "bin/triggershell.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://dev.pivoine.art/api/packages/valknar/npm/"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"src",
|
|
"templates",
|
|
"drizzle",
|
|
"docs",
|
|
".next",
|
|
"server.ts",
|
|
"next.config.ts",
|
|
"next-env.d.ts",
|
|
"tsconfig.json",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"dev": "tsx watch server.ts",
|
|
"build": "next build",
|
|
"start": "cross-env NODE_ENV=production tsx server.ts",
|
|
"lint": "eslint",
|
|
"typecheck": "tsc --noEmit",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"test": "tsx --test \"src/cli/**/*.test.ts\"",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:studio": "drizzle-kit studio",
|
|
"prepack": "rm -rf .next && next build && rm -rf .next/cache"
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "^1.7.0",
|
|
"@hookform/resolvers": "^5.8.0",
|
|
"@inquirer/prompts": "^8.5.2",
|
|
"@xterm/addon-fit": "^0.11.0",
|
|
"@xterm/xterm": "^6.0.0",
|
|
"argon2": "^0.45.1",
|
|
"better-sqlite3": "^13.0.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"commander": "^15.0.0",
|
|
"drizzle-orm": "^0.45.2",
|
|
"execa": "^10.0.1",
|
|
"iron-session": "^8.0.4",
|
|
"lucide-react": "^1.31.0",
|
|
"next": "16.3.1",
|
|
"next-themes": "^0.4.6",
|
|
"react": "19.2.8",
|
|
"react-dom": "19.2.8",
|
|
"react-hook-form": "^7.85.0",
|
|
"react-markdown": "^10.1.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"shadcn": "^4.18.0",
|
|
"sonner": "^2.0.8",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tsx": "^4.23.12",
|
|
"tw-animate-css": "^1.4.0",
|
|
"ws": "^8.21.3",
|
|
"yaml": "^2.9.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@tailwindcss/typography": "^0.5.20",
|
|
"@types/better-sqlite3": "^9.6.0",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/ws": "^8.18.1",
|
|
"cross-env": "^10.1.0",
|
|
"drizzle-kit": "^0.31.10",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.3.1",
|
|
"prettier": "^3.9.6",
|
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
},
|
|
"packageManager": "pnpm@11.21.0"
|
|
}
|