Skip to content

Commit b2d25b4

Browse files
authored
chore(ci): Allow manual trigger of publish to npm workflow [WPB-23275] (#20381)
1 parent 508f97c commit b2d25b4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish-libraries-on-merge.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
types: [closed]
66
branches:
77
- dev
8+
workflow_dispatch:
89

910
permissions:
1011
contents: write
@@ -16,9 +17,7 @@ concurrency:
1617

1718
jobs:
1819
publish:
19-
if: |
20-
github.event.pull_request.merged == true &&
21-
contains(github.event.pull_request.labels.*.name, 'publish-to-npm')
20+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'publish-to-npm'))
2221
runs-on: ubuntu-latest
2322
steps:
2423
- name: Checkout
@@ -52,6 +51,6 @@ jobs:
5251
echo "📦 Publishing release to npm..."
5352
yarn nx release publish --verbose
5453
env:
55-
DOTENV_CONFIG_QUIET: "true"
54+
DOTENV_CONFIG_QUIET: 'true'
5655
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5756
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)