File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments