Skip to content

Commit 3ddc7c3

Browse files
krish1925Krish Patel
andauthored
Sync main with development: CI (claims-lint removal, npm publish workflow) (#95)
* ci: remove advisory claims-lint job (owner decision — retired forever) (#92) Co-authored-by: Krish Patel <knpatel@g.ucla.edu> * ci: add npm publish workflow (core-v* tags / dispatch) + move @types/node to devDeps (#94) Publishes @isotrieve/core with --access public --provenance using NPM_TOKEN secret. Requires the 'isotrieve' npm org/user scope to exist (does not yet). Co-authored-by: Krish Patel <knpatel@g.ucla.edu> --------- Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
1 parent 0ff02e8 commit 3ddc7c3

4 files changed

Lines changed: 42 additions & 18 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,6 @@ jobs:
6868
run: python isotrieve-python/scripts/gen_adapter_matrix.py --check
6969
continue-on-error: true
7070

71-
claims-lint:
72-
runs-on: ubuntu-latest
73-
steps:
74-
- uses: actions/checkout@v4
75-
- uses: actions/setup-python@v5
76-
with:
77-
python-version: "3.12"
78-
cache: pip
79-
- name: Validate CLAIMS.md
80-
run: python isotrieve-python/scripts/lint_claims.py
81-
continue-on-error: true
8271

8372
pgvector-integration:
8473
runs-on: ubuntu-latest

‎.github/workflows/publish-npm.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish npm packages
2+
3+
# Publishes @isotrieve/core (and optionally the demo CLI) to the npm registry.
4+
# Triggers:
5+
# - push a tag `core-v*` (e.g. core-v0.2.0) — mirrors the PyPI release flow
6+
# - manual dispatch for re-publishes
7+
# Requires repo secret NPM_TOKEN (automation granular token with Publish rights
8+
# for the @isotrieve org/user scope).
9+
10+
on:
11+
push:
12+
tags:
13+
- 'core-v*'
14+
workflow_dispatch:
15+
16+
jobs:
17+
publish-core:
18+
runs-on: ubuntu-latest
19+
environment: npm
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
registry-url: https://registry.npmjs.org/
26+
- name: Install workspaces
27+
working-directory: isotrieve-npm
28+
run: npm ci
29+
- name: Typecheck + test
30+
working-directory: isotrieve-npm
31+
run: |
32+
./node_modules/.bin/tsc --noEmit -p packages/core/tsconfig.json
33+
npm test --workspace @isotrieve/core
34+
- name: Publish @isotrieve/core
35+
working-directory: isotrieve-npm/packages/core
36+
run: npm publish --access public --provenance
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

‎isotrieve-npm/package-lock.json‎

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎isotrieve-npm/packages/core/package.json‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
"engines": {
2727
"node": ">=18.0.0"
2828
},
29-
"dependencies": {
30-
"@types/node": "^20.11.0"
31-
},
29+
"dependencies": {},
3230
"devDependencies": {
3331
"@types/jest": "^29.5.0",
3432
"jest": "^29.5.0",
3533
"ts-jest": "^29.1.0",
36-
"typescript": "^5.3.3"
34+
"typescript": "^5.3.3",
35+
"@types/node": "^20.11.0"
3736
},
3837
"jest": {
3938
"preset": "ts-jest",

0 commit comments

Comments
 (0)