mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 10:03:55 -07:00
[Protocol] Inline package assembly, fix cmake-format, add workflow_dispatch
- Replace the custom Node packaging script with a flat inline step (cp the .proto glob, cp the static files, npm version) so the workflow speaks the same shell idiom as the other workflows. - Promote package.json and README.md to static files under libcockatrice_protocol/npm/ so contributors edit them in-place. - Re-format libcockatrice_protocol/CMakeLists.txt per .cmake-format.json. - Add workflow_dispatch (manual run; optional version input) and timeout-minutes: 10. - Drop --provenance from npm publish: GitHub Packages doesn't attest Sigstore provenance.
This commit is contained in:
parent
cc4a53b850
commit
b870ce0a4a
5 changed files with 111 additions and 138 deletions
25
libcockatrice_protocol/npm/package.json
Normal file
25
libcockatrice_protocol/npm/package.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"name": "@cockatrice/protocol",
|
||||
"version": "0.0.0",
|
||||
"description": "Cockatrice network protocol: .proto definitions and protocol version constant.",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Cockatrice/Cockatrice.git"
|
||||
},
|
||||
"homepage": "https://github.com/Cockatrice/Cockatrice",
|
||||
"files": [
|
||||
"pb/",
|
||||
"protocol_version.json",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com",
|
||||
"access": "restricted"
|
||||
},
|
||||
"exports": {
|
||||
"./protocol_version.json": "./protocol_version.json",
|
||||
"./pb/*.proto": "./pb/*.proto"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue