Skip to content

Commit 7646da6

Browse files
sqlrite_codexwikitopian
authored andcommitted
ci: share checks and require release tags (#2)
1 parent 30267e1 commit 7646da6

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@ jobs:
1818
node-version: 26
1919
cache: npm
2020
- run: npm ci
21-
- run: npm run lint:ci
22-
- run: npm run typecheck
23-
- run: npm test
21+
- run: npm run check

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: release
33
on:
44
push:
55
tags: ["v*"]
6-
workflow_dispatch:
76

87
permissions:
98
contents: read
@@ -21,7 +20,5 @@ jobs:
2120
cache: npm
2221
registry-url: "https://registry.npmjs.org"
2322
- run: npm ci
24-
- run: npm run lint:ci
25-
- run: npm run typecheck
26-
- run: npm test
23+
- run: npm run check
2724
- run: npm publish --provenance --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"test": "node --experimental-test-coverage --test-coverage-lines=80 --test-coverage-branches=80 --test-coverage-functions=80 --test",
6262
"debug": "node --experimental-test-coverage --trace-warnings --inspect-brk --test",
6363
"typecheck": "tsc",
64-
"check": "npm run lint && npm run typecheck && npm test",
64+
"check": "npm run lint:ci && npm run typecheck && npm test",
6565
"build:types": "node scripts/codegen.js",
6666
"prepack": "node scripts/codegen.js --base",
6767
"postpack": "node -e \"for (const f of ['SqlRite.d.ts', 'SqlRiteSync.d.ts', 'SqlRiteCore.d.ts']) require('node:fs').rmSync(f, { force: true });\""

0 commit comments

Comments
 (0)