Skip to content

Commit c70bbea

Browse files
ci: allow nightly releases from any branch
1 parent 66efcd6 commit c70bbea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/sdk-publish-npm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ permissions:
1515

1616
jobs:
1717
set-staging-version:
18-
# Only run for manual dispatch on main branch
19-
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' }}
18+
# Run for manual dispatch on any branch (nightly releases)
19+
if: ${{ github.event_name == 'workflow_dispatch' }}
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout code
@@ -33,8 +33,8 @@ jobs:
3333
VERSION: ${{ steps.set-staging-version.outputs.VERSION }}
3434

3535
publish-npm-staging:
36-
# Only run for manual dispatch on main branch
37-
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' }}
36+
# Run for manual dispatch on any branch (nightly releases)
37+
if: ${{ github.event_name == 'workflow_dispatch' }}
3838
uses: ./.github/workflows/reusable-npm.yml
3939
needs: set-staging-version
4040
with:

0 commit comments

Comments
 (0)