Skip to content

Commit 4843dd1

Browse files
committed
build: added pre-release workflow
1 parent 80a5e25 commit 4843dd1

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ name: Publish package to Github
55
on:
66
workflow_dispatch:
77
push:
8-
branches: [main]
8+
branches:
9+
- main
10+
- staging
911

1012
concurrency:
1113
group: ${{ github.ref }}
@@ -23,9 +25,14 @@ jobs:
2325
uses: cycjimmy/semantic-release-action@v3
2426
id: semantic
2527
with:
26-
branch: 'main'
27-
#working_directory: 'dist'
28-
# working_directory: 'src'
28+
branch: |
29+
[
30+
'main',
31+
{
32+
name: 'staging',
33+
prerelease: true
34+
}
35+
]
2936
env:
3037
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3138
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)