Skip to content

Commit 5cd9e1a

Browse files
committed
add release CI action
1 parent ad65c29 commit 5cd9e1a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Sync Release
2+
3+
on:
4+
registry_package:
5+
types: [published]
6+
7+
# Permissions needed to create releases
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
sync-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Get package version
20+
id: package_version
21+
run: |
22+
echo "version=$(npm view @lazydynamics/rxinfer-client version)" >> $GITHUB_OUTPUT
23+
24+
- name: Create GitHub Release
25+
uses: softprops/action-gh-release@v1
26+
with:
27+
tag_name: v${{ steps.package_version.outputs.version }}
28+
name: v${{ steps.package_version.outputs.version }}
29+
body: |
30+
Release v${{ steps.package_version.outputs.version }}
31+
32+
This release was automatically created when the package was published to npm.
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)