Automatically publish packages through CI/CD (Github Actions) #534
Replies: 2 comments 1 reply
-
|
Dart pub lish --force
…On Fri, 5 Apr 2024, 9:56 pm RashadAkoodieRabbit, ***@***.***> wrote:
Hi everyone. I am really trying to get my packages published to OnePub
through Github Actions. It is obviously expecting some confirmation by
either typing (Y/n) to confirm the publication but I already do my version
checks/dart analyze myself before trying to publish the package so I really
don't need the confirmation step and it is now failing on the publish step.
Any way to confirm through the CLI/ override the confirmation step etc?
—
Reply to this email directly, view it on GitHub
<#534>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG32OH6OZZ62O5KWKKOGF3Y3Z7MNAVCNFSM6AAAAABFY5TCB6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGQ3DGNBXGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
We have added the following to the doco: When publishing a package the 'dart pub publish' command will prompt the user to confirm the act of publishing. When running a CI/CD action there is no user involved, so you need to use the --force switch: https://app.gitbook.com/o/ecaaU3OrP2aDt9qZRymk/s/JazaE7yAHIXZjE9ucSqu/~/changes/187/guides/ci-cd Does this seem sufficient? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone. I am really trying to get my packages published to OnePub through Github Actions. It is obviously expecting some confirmation by either typing (Y/n) to confirm the publication but I already do my version checks/dart analyze myself before trying to publish the package so I really don't need the confirmation step and it is now failing on the publish step.
Any way to confirm through the CLI/ override the confirmation step etc?
Beta Was this translation helpful? Give feedback.
All reactions