We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9232ccb commit 6807f0cCopy full SHA for 6807f0c
1 file changed
.github/workflows/ci.yml
@@ -90,9 +90,14 @@ jobs:
90
run: pnpm run build
91
92
- name: Publish (development)
93
- if: github.repository == 'RightCapitalHQ/php-parser' && github.base_ref == github.event.repository.default_branch
+ if: >-
94
+ github.repository == 'RightCapitalHQ/php-parser' &&
95
+ (
96
+ github.base_ref == github.event.repository.default_branch ||
97
+ (github.event_name == 'push' && github.ref_name != github.event.repository.default_branch)
98
+ )
99
env:
- HEAD_REF: ${{ github.head_ref }}
100
+ HEAD_REF: ${{ github.head_ref || github.ref_name }}
101
run: |
102
preid="${HEAD_REF//\//-}".${{ github.run_number }}.${{ github.run_attempt }}
103
npm --no-git-tag-version version prerelease --preid="${preid}"
0 commit comments