Skip to content

Commit 7bb1689

Browse files
committed
ci: add publish workflows
1 parent be8af61 commit 7bb1689

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Continuous Integration
22

33
on:
4+
workflow_call:
45
push:
6+
branches-ignore:
7+
- main
58

69
jobs:
710
lint:

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: release
10+
cancel-in-progress: true
11+
12+
jobs:
13+
ci:
14+
uses: ./.github/workflows/continuous-integration.yml
15+
16+
release-npm:
17+
needs: ci
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
token: ${{ secrets.GH_BOT_TOKEN }}
24+
- uses: actions/download-artifact@v4
25+
with:
26+
name: master.sqlite
27+
path: dist
28+
- uses: shabados/actions/setup-git-identity@release/v3
29+
with:
30+
user: Shabad OS Bot
31+
email: team@shabados.com
32+
- uses: shabados/actions/bump-version@release/v3
33+
with:
34+
prerelease: true
35+
id: bump-version
36+
- uses: shabados/actions/publish-npm@release/v3
37+
with:
38+
github_token: ${{ secrets.GH_BOT_TOKEN }}
39+
npm_token: ${{ secrets.NPM_BOT_TOKEN }}
40+
- uses: shabados/actions/publish-github@release/v3
41+
with:
42+
github_token: ${{ secrets.GH_BOT_TOKEN }}
43+
release_version: ${{ steps.bump-version.outputs.next }}
44+
asset_paths: dist/*

0 commit comments

Comments
 (0)