Skip to content

Commit bfc8919

Browse files
committed
Harden release pipeline
- Replace deno task dts / --allow-dirty with dts:check to verify committed types before publish - Bump version to 0.1.1 and exclude tsconfig*.json, scripts/ from publish
1 parent a9da54a commit bfc8919

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
with:
1818
deno-version: v2.x
1919
- run: deno install # materialize node_modules (phaser) so tsc can resolve types
20-
- run: deno task dts # regenerate the bundled mod.d.ts from JSDoc
21-
- run: deno publish --allow-dirty # ship the freshly-generated mod.d.ts
20+
- run: deno task dts:check # regenerate + fail the release if committed mod.d.ts is stale
21+
- run: deno publish # tree is clean (dts:check verified it), so no --allow-dirty

deno.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@caper/engine",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"license": "MIT",
55
"nodeModulesDir": "auto",
66
"exports": {
@@ -10,7 +10,9 @@
1010
"exclude": [
1111
"**/*.test.js",
1212
".history/",
13-
"CONTEXT.md"
13+
"CONTEXT.md",
14+
"tsconfig*.json",
15+
"scripts/"
1416
]
1517
},
1618
"tasks": {

0 commit comments

Comments
 (0)