Skip to content

Commit eb82e3b

Browse files
committed
NPM Bump version
1 parent 1d49d68 commit eb82e3b

File tree

2 files changed

+39
-43
lines changed

2 files changed

+39
-43
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/rust.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
tags:
7-
- '*'
5+
branches:
6+
- '**'
7+
88
pull_request:
9-
branches: [ "main" ]
9+
types: [closed]
10+
branches:
11+
- main
1012

1113
env:
1214
CARGO_TERM_COLOR: always
@@ -59,3 +61,36 @@ jobs:
5961
# cargo miri setup
6062
# - name: Test with Miri
6163
# run: cargo miri test
64+
65+
release:
66+
runs-on: ubuntu-latest
67+
if: github.event.pull_request.merged == true
68+
69+
steps:
70+
- uses: actions/checkout@v4
71+
72+
- name: Caching objects
73+
id: cache-objects
74+
uses: actions/cache@v4
75+
with:
76+
path: |
77+
~/.cargo
78+
${{ github.workspace }}/target
79+
key: ${{ runner.os }}-release-objects
80+
81+
- name: Set up Node.js
82+
uses: actions/setup-node@v4
83+
with:
84+
node-version: '24'
85+
86+
- name: Install dependencies
87+
run: npm ci
88+
89+
- name: Install cargo-release
90+
run: cargo install cargo-release
91+
92+
- name: Semantic Release
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
96+
run: npx semantic-release

0 commit comments

Comments
 (0)