Skip to content

Commit a315a86

Browse files
committed
Add automatic publishing workflow
1 parent 2b4ab71 commit a315a86

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish packages
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
attestations: write
12+
13+
jobs:
14+
github:
15+
uses: tree-sitter/workflows/.github/workflows/release.yml@main
16+
with:
17+
generate: true
18+
attestations: true
19+
npm:
20+
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
21+
secrets:
22+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
23+
with:
24+
generate: true
25+
crates:
26+
uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main
27+
secrets:
28+
CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}}
29+
with:
30+
generate: true
31+
pypi:
32+
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
33+
secrets:
34+
PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}}
35+
with:
36+
generate: true

0 commit comments

Comments
 (0)