File tree Expand file tree Collapse file tree 4 files changed +6000
-0
lines changed
Expand file tree Collapse file tree 4 files changed +6000
-0
lines changed Original file line number Diff line number Diff line change 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 : Caching objects
16+ id : cache-objects
17+ uses : actions/cache@v4
18+ with :
19+ path : |
20+ ~/.cargo
21+ ${{ github.workspace }}/target
22+ key : ${{ runner.os }}-release-objects
23+
24+ - name : Set up Node.js
25+ uses : actions/setup-node@v4
26+ with :
27+ node-version : ' 20'
28+
29+ - name : Install dependencies
30+ run : npm ci
31+
32+ - name : Install cargo-release
33+ run : cargo install cargo-release
34+
35+ - name : Semantic Release
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
39+ run : npx semantic-release
Original file line number Diff line number Diff line change 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}" ,
12+ "publishCmd" : " cargo publish --dry-run"
13+ }
14+ ],
15+ " @semantic-release/github"
16+ ]
17+ }
You can’t perform that action at this time.
0 commit comments