Skip to content

Commit d722166

Browse files
committed
ci: fix
1 parent 1cad5c7 commit d722166

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
name: Deploy and Publish
88

99
on:
10-
push:
11-
branches: [ '**' ]
12-
pull_request:
10+
workflow_run:
11+
workflows: ["Build and Test"]
1312
branches: [ master ]
13+
types:
14+
- completed
1415

1516
# Allows you to run this workflow manually from the Actions tab
1617
workflow_dispatch:
@@ -63,14 +64,14 @@ jobs:
6364
env:
6465
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6566
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
66-
run: echo ::set-output name=IS_NEW_RELEASE::$(npx semantic-release --dry-run --branches 9662_addcheck | grep -c -i "Published release")
67+
run: echo ::set-output name=IS_NEW_RELEASE::$(npx semantic-release --dry-run | grep -c -i "Published release")
6768

6869
- name: Publish to Git Releases and Tags
6970
if: ${{ steps.is_new_release.outputs.IS_NEW_RELEASE == '1' }}
7071
env:
7172
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7273
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
73-
run: npx semantic-release --dry-run --branches 9662_addcheck
74+
run: npx semantic-release # --dry-run --branches 9662_addcheck
7475

7576
- name: Publish to Maven Central
7677
if: ${{ steps.is_new_release.outputs.IS_NEW_RELEASE == '1' }}

0 commit comments

Comments
 (0)