Skip to content

Commit e33c469

Browse files
SutuSebastianSutuSebastian
and
SutuSebastian
authored
ci: add release workflow (#1324)
* ci: add `release` workflow test * chore: changeset * chore: remove changeset --------- Co-authored-by: SutuSebastian <[email protected]>
1 parent c2fb19a commit e33c469

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout branch
16+
uses: actions/checkout@v4
17+
18+
- name: Setup
19+
uses: ./.github/actions/setup
20+
21+
- name: Run build
22+
run: bun run build
23+
24+
- name: Create Release Pull Request or Publish to NPM
25+
id: changesets
26+
uses: changesets/action@v1
27+
with:
28+
publish: bun run release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)