Skip to content

Commit ad88f98

Browse files
Merge branch 'main' into feat/node/prom-client-implementation
2 parents d7c5108 + 6c934c3 commit ad88f98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,15 @@ jobs:
5454
5555
# get main again
5656
- name: Checkout Repository
57+
# only checkout if a release has been created
58+
if: ${{ steps.release.outputs.release_created }}
5759
uses: actions/checkout@v4
5860
with:
5961
fetch-depth: 0
6062

6163
- name: Rebuild Packages
64+
# only rebuild if a release has been created
65+
if: ${{ steps.release.outputs.release_created }}
6266
run: |
6367
npm ci
6468
npm run compile
@@ -67,6 +71,8 @@ jobs:
6771
# need to publish all unpublished versions to npm here
6872
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
6973
- name: Publish to npm
74+
# only publish if a release has been created
75+
if: ${{ steps.release.outputs.release_created }}
7076
env:
7177
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7278
run: npx lerna publish from-package --no-push --no-private --no-git-tag-version --no-verify-access --yes

0 commit comments

Comments
 (0)