ci: add Gitea workflow to auto-publish to npm on tag push
Publish to npm / publish (push) Successful in 37s

- .gitea/workflows/publish-npm.yml: npm ci + audit self-check + npm publish (NPM_PACKAGE_TOKEN secret)
- package.json: files whitelist (src only), prepublishOnly gate, npm install support
This commit is contained in:
2026-09-02 19:33:35 +08:00
parent 305cdfb3f3
commit f22081ebec
3 changed files with 54 additions and 7 deletions
+14 -1
View File
@@ -25,5 +25,18 @@
},
"devDependencies": {
"@earendil-works/pi-coding-agent": "0.84.4"
}
},
"main": "src/index.ts",
"files": [
"src",
"README.md",
"LICENSE",
"AGENTS.md",
"!src/*.test.ts"
],
"author": "rogee",
"scripts": {
"check": "node --experimental-strip-types --no-warnings src/audit.test.ts"
},
"prepublishOnly": "node --experimental-strip-types --no-warnings src/audit.test.ts"
}