Skip to content

Commit bce2ee5

Browse files
committed
feat: release workflow
1 parent 6d81fdf commit bce2ee5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.BELLA_ACTION_TOKEN }}
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- uses: bahmutov/npm-install@v1
22+
23+
- name: Create release Pull Request or publish release
24+
id: changesets
25+
uses: changesets/action@v1
26+
with:
27+
version: yarn changeset version
28+
publish: yarn changeset publish
29+
commit: 'chore: version package'
30+
title: 'chore: version package'
31+
createGithubReleases: true
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.BELLA_ACTION_TOKEN }}

0 commit comments

Comments
 (0)