File tree Expand file tree Collapse file tree
packages/triage/src/util/ingestContent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,19 +40,12 @@ jobs:
4040 key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4141 restore-keys : |
4242 ${{ runner.os }}-node-
43- - run : npm install
43+ - run : npm ci
4444 - run : npm run build
45- env :
46- DUCKDB_DATABASE_PATH : mrtdown.duckdb
47- SENTRY_ORG : ${{ secrets.SENTRY_ORG }}
48- SENTRY_PROJECT : ${{ secrets.SENTRY_PROJECT }}
49- SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
50- SENTRY_RELEASE : production
5145 - run : npm run ingest:webhook
5246 env :
5347 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
5448 MESSAGE : ${{ toJSON(github.event.client_payload) }}
55- DUCKDB_DATABASE_PATH : mrtdown.duckdb
5649 - name : Check for changes
5750 id : make-changes
5851 run : |-
Original file line number Diff line number Diff line change 1212 "cli" : " turbo cli" ,
1313 "build" : " turbo build" ,
1414 "test" : " turbo test" ,
15+ "ingest:webhook" : " node --enable-source-maps ./packages/triage/dist/scripts/ingestViaWebhook.js" ,
1516 "changeset" : " changeset" ,
1617 "changeset:version" : " changeset version" ,
1718 "changeset:publish" : " changeset publish" ,
3435 "publishConfig" : {
3536 "access" : " public"
3637 }
37- }
38+ }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { assert } from '../assert.js';
1717import { getSlugDateTimeFromClaims } from './helpers/getSlugDateTimeFromClaims.js' ;
1818import type { IngestContent } from './types.js' ;
1919
20- const DATA_DIR = resolve ( import . meta. dirname , '../../../data' ) ;
20+ const DATA_DIR = resolve ( import . meta. dirname , '../../../../ data' ) ;
2121
2222const store = new FileStore ( DATA_DIR ) ;
2323const writeStore = new FileWriteStore ( DATA_DIR ) ;
You can’t perform that action at this time.
0 commit comments