File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : upload-index
2
+ on :
3
+ push :
4
+ paths :
5
+ - ' **.ts'
6
+
7
+ jobs :
8
+ upload-index :
9
+ if : github.repository == 'sourcegraph/lsif-typescript'
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - name : Install npm dependencies
14
+ run : yarn --ignore-engines --ignore-scripts
15
+ - name : Install src-cli
16
+ run : |
17
+ curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
18
+ chmod +x /usr/local/bin/src
19
+ - name : Run lsif-typescript
20
+ run : ./node_modules/.bin/ts-node src/main.ts index --no-progress-bar
21
+ - name : Upload index
22
+ run : src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
23
+ env :
24
+ SRC_ENDPOINT : https://sourcegraph.com/
Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ Generate snapshots and update.
23
23
## Snapshotting arbitrary projects
24
24
25
25
``` sh
26
- npm run build # build lsif-typescript
27
26
cd /path/to/dir
28
- node /path/to/lsif-typescript/dist/ src/main.js index # add --yarn-workspaces if applicable
27
+ DIR= /path/to/lsif-typescript " $DIR /node_modules/.bin/ts-node " " $DIR / src/main.ts " index # add --yarn-workspaces if applicable
29
28
lsif-typed dump.lsif-typed > dump.lsif # from github.com/sourcegraph/sourcegraph/lib/codeintel/tools/lsif-typed
30
29
lsif-java snapshot-lsif # from github.com/sourcegraph/lsif-java
31
30
```
You can’t perform that action at this time.
0 commit comments