Skip to content

Commit 8d0bfb4

Browse files
committed
test
1 parent 92c6d34 commit 8d0bfb4

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
20+
- name: Set up Rust
21+
uses: actions/setup-rust@v1
22+
with:
23+
rust-version: 'stable'
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Install cargo-release
29+
run: cargo install cargo-release
30+
31+
- name: Semantic Release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
35+
run: npx semantic-release

.releaserc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
[
9+
"@semantic-release/exec",
10+
{
11+
"prepareCmd": "cargo release version ${nextRelease.version} --no-publish --no-push",
12+
"publishCmd": "cargo publish"
13+
}
14+
],
15+
"@semantic-release/github"
16+
]
17+
}

0 commit comments

Comments
 (0)