File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 76
76
# this file) to a constant and skip rebuilding all of the packages each time CI runs.
77
77
if : steps.cache_built_packages.outputs.cache-hit == ''
78
78
run : yarn build
79
+ # We are performing a `prepublishOnly` step manually because build workflow is not responsible for publishing
80
+ # the actual release. It only creates artifacts which then are uploaded and used by another workflow.
81
+ # Because of that, any `prepublishOnly` script is skipped and files it produces are not included in the tarball.
82
+ # We also cannot use `prepare` script which would be more suited, because it's run only before `pack` is called,
83
+ # and it's done from a `release` workflow and not here.
84
+ - name : Run prepublishOnly script
85
+ if : startsWith(github.ref, 'refs/heads/release/')
86
+ run : yarn prepublishOnly
79
87
outputs :
80
88
# this needs to be passed on, because the `needs` context only looks at direct ancestors (so steps which depend on
81
89
# `job_build` can't see `job_install_deps` and what it returned)
You can’t perform that action at this time.
0 commit comments