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:
54
54
55
55
# get main again
56
56
- name : Checkout Repository
57
+ # only checkout if a release has been created
58
+ if : ${{ steps.release.outputs.release_created }}
57
59
uses : actions/checkout@v4
58
60
with :
59
61
fetch-depth : 0
60
62
61
63
- name : Rebuild Packages
64
+ # only rebuild if a release has been created
65
+ if : ${{ steps.release.outputs.release_created }}
62
66
run : |
63
67
npm ci
64
68
npm run compile
67
71
# need to publish all unpublished versions to npm here
68
72
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
69
73
- name : Publish to npm
74
+ # only publish if a release has been created
75
+ if : ${{ steps.release.outputs.release_created }}
70
76
env :
71
77
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
72
78
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