Skip to content

Commit 707c033

Browse files
authored
ci: create publish.yml
1 parent 43c4874 commit 707c033

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)