Skip to content

Commit 268a00f

Browse files
committed
Release with action
1 parent a9bd146 commit 268a00f

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,25 @@ jobs:
3636
run: echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > .npmrc
3737
env:
3838
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39-
- name: Release
40-
run: npm run semantic-release
39+
- name: Semantic Release
40+
uses: cycjimmy/semantic-release-action@v2
41+
with:
42+
semantic_version: 16
43+
branches: |
44+
[
45+
'+([0-9])?(.{+([0-9]),x}).x',
46+
'master',
47+
'next',
48+
'next-major',
49+
{
50+
name: 'beta',
51+
prerelease: true
52+
},
53+
{
54+
name: 'alpha',
55+
prerelease: true
56+
}
57+
]
4158
env:
4259
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4360
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)