From c64c86fcc1b73dd75bfc512c26f14977ca75ed75 Mon Sep 17 00:00:00 2001 From: sensuikan1973 Date: Sat, 14 Dec 2024 15:09:54 +0900 Subject: [PATCH] https://github.com/sensuikan1973/pedantic_sensuikan1973/issues/118 --- .github/workflows/create_release.yaml | 2 +- .github/workflows/create_release_pr.yaml | 7 +- pubspec.lock | 160 ----------------------- pubspec.yaml | 2 - 4 files changed, 5 insertions(+), 166 deletions(-) diff --git a/.github/workflows/create_release.yaml b/.github/workflows/create_release.yaml index d635e1a..c7efe33 100644 --- a/.github/workflows/create_release.yaml +++ b/.github/workflows/create_release.yaml @@ -22,7 +22,7 @@ jobs: - uses: dart-lang/setup-dart@v1 - name: inject current version - run: echo "CURRENT_VERSION=$(dart run cider version)" >> $GITHUB_ENV + run: echo "CURRENT_VERSION=$(dart pub deps --style compact | grep "pedantic_sensuikan1973" | cut -c 24-)" >> $GITHUB_ENV - uses: softprops/action-gh-release@v2 env: diff --git a/.github/workflows/create_release_pr.yaml b/.github/workflows/create_release_pr.yaml index 7c5852a..9c34651 100644 --- a/.github/workflows/create_release_pr.yaml +++ b/.github/workflows/create_release_pr.yaml @@ -12,8 +12,9 @@ on: - patch - minor - major + - breaking required: true - # Although I can use https://github.com/f3ath/cider#changelog, I don't describe pedantic_sensuikan1973 CHANGELOG with large text and I decided to implement simple workflow. + # I don't describe pedantic_sensuikan1973 CHANGELOG with large text and I decided to implement simple workflow. changelog_description: type: string description: 'description for CHANGELOG' @@ -31,10 +32,10 @@ jobs: - uses: dart-lang/setup-dart@v1 - name: bump version - run: dart run cider bump ${{ github.event.inputs.version_bump_part }} + run: dart pub bump ${{ github.event.inputs.version_bump_part }} - name: inject current version - run: echo "CURRENT_VERSION=$(dart run cider version)" >> $GITHUB_ENV + run: echo "CURRENT_VERSION=$(dart pub deps --style compact | grep "pedantic_sensuikan1973" | cut -c 24-)" >> $GITHUB_ENV - name: update CHANGELOG run: | diff --git a/pubspec.lock b/pubspec.lock index 89d03d1..f3a5a3c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,54 +1,6 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: - args: - dependency: transitive - description: - name: args - sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 - url: "https://pub.dev" - source: hosted - version: "2.6.0" - change: - dependency: transitive - description: - name: change - sha256: "65db7f966dc7e786687f49900a94c5f08b0eb9ca8c4a3e7eed3a55e980b455e2" - url: "https://pub.dev" - source: hosted - version: "0.7.4" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff - url: "https://pub.dev" - source: hosted - version: "2.0.3" - cider: - dependency: "direct dev" - description: - name: cider - sha256: dfff70e9324f99e315857c596c31f54cb7380cfa20dfdfdca11a3631e05b7d3e - url: "https://pub.dev" - source: hosted - version: "0.2.8" - clock: - dependency: transitive - description: - name: clock - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b - url: "https://pub.dev" - source: hosted - version: "1.1.2" - collection: - dependency: transitive - description: - name: collection - sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" - url: "https://pub.dev" - source: hosted - version: "1.19.1" flutter_lints: dependency: "direct main" description: @@ -57,22 +9,6 @@ packages: url: "https://pub.dev" source: hosted version: "5.0.0" - intl: - dependency: transitive - description: - name: intl - sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf - url: "https://pub.dev" - source: hosted - version: "0.19.0" - json_annotation: - dependency: transitive - description: - name: json_annotation - sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" - url: "https://pub.dev" - source: hosted - version: "4.9.0" lints: dependency: transitive description: @@ -81,101 +17,5 @@ packages: url: "https://pub.dev" source: hosted version: "5.1.0" - markdown: - dependency: transitive - description: - name: markdown - sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051 - url: "https://pub.dev" - source: hosted - version: "7.2.2" - marker: - dependency: transitive - description: - name: marker - sha256: "3dadd01f3b0ffae148ffb3b1bc04290a98e54a465cddbab59727bd2a9fe57750" - url: "https://pub.dev" - source: hosted - version: "0.6.0" - meta: - dependency: transitive - description: - name: meta - sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c - url: "https://pub.dev" - source: hosted - version: "1.16.0" - path: - dependency: transitive - description: - name: path - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd" - url: "https://pub.dev" - source: hosted - version: "2.1.5" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - rfc_6901: - dependency: transitive - description: - name: rfc_6901 - sha256: df1bbfa3d023009598f19636d6114c6ac1e0b7bb7bf6a260f0e6e6ce91416820 - url: "https://pub.dev" - source: hosted - version: "0.2.0" - source_span: - dependency: transitive - description: - name: source_span - sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" - url: "https://pub.dev" - source: hosted - version: "1.10.1" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "0bd04f5bb74fcd6ff0606a888a30e917af9bd52820b178eaa464beb11dca84b6" - url: "https://pub.dev" - source: hosted - version: "1.4.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - version_manipulation: - dependency: transitive - description: - name: version_manipulation - sha256: e90782d610bde19765d2808ec06bc8ed9e04640a4dd07d1a3d370728ce9dae7f - url: "https://pub.dev" - source: hosted - version: "0.2.0" - yaml: - dependency: transitive - description: - name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" - url: "https://pub.dev" - source: hosted - version: "3.1.2" sdks: dart: ">=3.6.0-0 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index b48b47d..5a389f7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,5 +8,3 @@ environment: sdk: '>=3.4.0 <4.0.0' dependencies: flutter_lints: ^5.0.0 -dev_dependencies: - cider: ^0.2.8