Skip to content

Commit

Permalink
chore: minor changes to the publish_flutter_quill.dart script
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Nov 10, 2024
1 parent b27b89c commit ba36c3b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/publish_flutter_quill.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ const _targetChangelog = './CHANGELOG.md';

const _confirmPublishOptionName = 'Y';

const _mainGitRemote = 'origin';

const _changelogAndPubspecRestoreMessage =
'ℹ️ Changes to CHANGELOG.md and pubspec.yaml have not been reverted.\n'
'ℹ️ Changes to CHANGELOG.md and pubspec.yaml have not been reverted.\n'
'To revert them, run:\n'
'git restore --staged $_targetChangelog $_targetPubspecYaml\n'
'git restore $_targetChangelog $_targetPubspecYaml';
Expand Down Expand Up @@ -112,14 +114,14 @@ void main(List<String> args) {
Process.runSync('git', ['push']);

print('ℹ️ Pushing tag to remote...');
Process.runSync('git', ['push', 'origin', tagName]);
Process.runSync('git', ['push', _mainGitRemote, tagName]);
print(
'✅ The tag $tagName has been pushed. The GitHub workflow will handle the rest.\n'
'For more details, check: https://github.com/singerdmx/flutter-quill/actions',
);
} catch (e) {
print(
'❌ An error occurred during the publishing process: ${e.toString()}\n\n',
'❌ An error occurred during the publishing process: ${e.toString()}\n',
);
print(_changelogAndPubspecRestoreMessage);
}
Expand Down

0 comments on commit ba36c3b

Please sign in to comment.