Closed iapicca closed 1 year ago
adding publish_to: 'none'
in examples didn't help
job: https://github.com/iapicca/yak_packages/actions/runs/3111572913/jobs/5044010109
pr: https://github.com/iapicca/yak_packages/pull/181
$ melos exec
└> flutter format . --fix
└> SUCCESS
melos run lint:format
└> melos exec \--concurrency 1 \-- \flutter format . \--fix
└> SUCCESS
melos publish
└> /home/runner/work/yak_packages/yak_packages
Reading pub registry for package information...
The following packages WILL be published to the registry:
Package Name Registry Local
yak_utils 1.0.0+7 1.0.0+9
stub 1.0.0+2 1.0.0+3
yak_result 1.0.0+2 1.0.0+4
yak_runner 1.0.0+1 1.0.0+2
byte_token 1.0.0+2 1.0.0+3
yak_tween 0.1.0+10 0.1.0+11
yak_flutter 1.0.0+4 1.0.0+5
yak_test 1.0.0+0 1.0.0+1
CancelledException: Operation was canceled.
melos run publish
└> melos run lint:format && \melos publish --no-dry-run
└> FAILED
ScriptException: The script publish failed to execute
Error: Process completed with exit code 1.
the issue seems to be caused by 2 different problems:
melos publish
requires "y" + "enter" input
pub.dev does not allow symlink as example
after https://github.com/iapicca/yak_packages/pull/182
- add publish_to: none in examples pubspec
- replace example symlink with markdown file
- update publishing script in workflows
error changed
$ melos exec
└> flutter format . --fix
└> SUCCESS
melos run lint:format
└> melos exec \--concurrency 1 \-- \flutter format . \--fix
└> SUCCESS
melos publish
└> /home/runner/work/yak_packages/yak_packages
Reading pub registry for package information...
The following packages WILL be published to the registry:
Package Name Registry Local
yak_utils 1.0.0+7 1.0.0+9
yak_tween 0.1.0+10 0.1.0+11
yak_result 1.0.0+2 1.0.0+4
yak_runner 1.0.0+1 1.0.0+2
yak_flutter 1.0.0+4 1.0.0+5
stub 1.0.0+2 1.0.0+3
yak_test 1.0.0+0 1.0.0+1
byte_token 1.0.0+2 1.0.0+3
CancelledException: Operation was canceled.
melos run publish
└> melos run lint:format && \melos publish --no-dry-run
└> FAILED
ScriptException: The script publish failed to execute
yes: standard output: Broken pipe
Error: Process completed with exit code 1.
error merging https://github.com/iapicca/yak_packages/pull/179
CancelledException: Operation was canceled.
?possibly related to https://github.com/invertase/melos/issues/356
see https://github.com/iapicca/yak_packages/actions/runs/3111410308