File tree Expand file tree Collapse file tree 5 files changed +66
-39
lines changed Expand file tree Collapse file tree 5 files changed +66
-39
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: build
2
2
3
3
on :
4
4
push :
5
+ branches : [main]
5
6
pull_request :
6
7
7
8
jobs :
@@ -10,12 +11,12 @@ jobs:
10
11
runs-on : ubuntu-latest
11
12
steps :
12
13
- name : Checkout code
13
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v3
14
15
15
16
- name : Setup Node
16
- uses : actions/setup-node@v2-beta
17
+ uses : actions/setup-node@v3
17
18
with :
18
- node-version : ' 12 '
19
+ node-version : ' 18 '
19
20
20
21
- name : Display Node versions
21
22
run : |
25
26
- name : Install dependencies
26
27
run : npm install
27
28
29
+ - name : Display Tree-sitter version
30
+ run : |
31
+ npx tree-sitter --version
32
+
28
33
- name : Build and check generated files
29
34
run : |
30
35
npm run build
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*
7
+
8
+ env :
9
+ CARGO_TERM_COLOR : always
10
+ CARGO_INCREMENTAL : 0
11
+
12
+ jobs :
13
+ publish-crate :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v3
20
+
21
+ - name : Install Rust
22
+ uses : actions-rs/toolchain@v1
23
+ with :
24
+ toolchain : stable
25
+ profile : minimal
26
+ override : true
27
+
28
+ - name : Verify crate
29
+ run : cargo publish --dry-run
30
+
31
+ - name : Publish crate
32
+ run : cargo publish
33
+ env :
34
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
35
+
36
+ publish-npm :
37
+
38
+ runs-on : ubuntu-latest
39
+
40
+ steps :
41
+ - name : Checkout repository
42
+ uses : actions/checkout@v3
43
+
44
+ - name : Install Node
45
+ uses : actions/setup-node@v3
46
+ with :
47
+ node-version : 18
48
+ registry-url : " https://registry.npmjs.org"
49
+
50
+ - name : Verify package
51
+ run : npm publish --dry-run
52
+
53
+ - name : Publish package
54
+ env :
55
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
56
+ run : npm publish
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " tree-sitter-typescript"
3
3
description = " Typescript grammar for the tree-sitter parsing library"
4
- version = " 0.20.2 "
4
+ version = " 0.20.3 "
5
5
authors = [
" Max Brunsfeld <[email protected] >" ]
6
6
license = " MIT"
7
7
readme = " README.md"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tree-sitter-typescript" ,
3
- "version" : " 0.20.2 " ,
3
+ "version" : " 0.20.3 " ,
4
4
"description" : " Typescript grammar for tree-sitter" ,
5
5
"keywords" : [
6
6
" parser" ,
You can’t perform that action at this time.
0 commit comments