Skip to content

Commit e0d5b0a

Browse files
ci: update workflows
1 parent 433380e commit e0d5b0a

File tree

4 files changed

+43
-4
lines changed

4 files changed

+43
-4
lines changed

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
day: sunday
8+
commit-message:
9+
prefix: ci
10+
labels: [dependencies]
11+
open-pull-requests-limit: 1
12+
groups:
13+
actions:
14+
patterns: ["*"]
15+
16+
- package-ecosystem: gitsubmodule
17+
directory: /
18+
schedule:
19+
interval: monthly
20+
day: friday
21+
commit-message:
22+
prefix: build
23+
labels: [dependencies]
24+
open-pull-requests-limit: 1
25+
groups:
26+
submodules:
27+
patterns: ["*"]

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
- src/**
99
- test/**
1010
- bindings/**
11-
- binding.gyp
11+
- tree-sitter.json
1212
pull_request:
1313
paths:
1414
- grammar.js
1515
- src/**
1616
- test/**
1717
- bindings/**
18-
- binding.gyp
18+
- tree-sitter.json
1919

2020
concurrency:
2121
group: ${{github.workflow}}-${{github.ref}}
@@ -28,16 +28,18 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
os: [ubuntu-latest, windows-latest, macos-14]
31+
os: [ubuntu-latest, windows-latest, macos-latest]
3232
steps:
3333
- name: Checkout repository
3434
uses: actions/checkout@v4
3535
with:
3636
submodules: true
3737
- name: Set up tree-sitter
38-
uses: tree-sitter/setup-action/cli@v1
38+
uses: tree-sitter/setup-action/cli@v2
3939
- name: Run parser and binding tests
4040
uses: tree-sitter/parser-test-action@v2
41+
with:
42+
generate: false
4143
- name: Parse sample files
4244
uses: tree-sitter/parse-action@v4
4345
id: parse-files

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ on:
77
jobs:
88
release:
99
uses: tree-sitter/workflows/.github/workflows/release.yml@main
10+
with:
11+
attestations: true
1012
permissions:
1113
contents: write
14+
id-token: write
15+
attestations: write
1216
npm:
1317
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
1418
secrets:
@@ -17,3 +21,7 @@ jobs:
1721
uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main
1822
secrets:
1923
CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_TOKEN}}
24+
pypi:
25+
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
26+
secrets:
27+
PYPI_API_TOKEN: ${{secrets.PYPI_TOKEN}}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
66
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-gitattributes)
77
[![crates][crates]](https://crates.io/crates/tree-sitter-gitattributes)
8+
[![pypi][pypi]](https://pypi.org/project/tree-sitter-gitattributes/)
89

910
A tree-sitter parser for `.gitattributes` files.
1011

@@ -29,3 +30,4 @@ A tree-sitter parser for `.gitattributes` files.
2930
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
3031
[npm]: https://img.shields.io/npm/v/tree-sitter-gitattributes?logo=npm
3132
[crates]: https://img.shields.io/crates/v/tree-sitter-gitattributes?logo=rust
33+
[pypi]: https://img.shields.io/pypi/v/tree-sitter-gitattributes?logo=pypi&logoColor=ffd242

0 commit comments

Comments
 (0)