Skip to content

Commit 109784c

Browse files
authored
Merge pull request #49 from wasabeef/release-v1
2 parents 43093ed + f655a6e commit 109784c

File tree

17 files changed

+316
-941
lines changed

17 files changed

+316
-941
lines changed

.cursorindexingignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# Don't index SpecStory auto-save files, but allow explicit context inclusion via @ references
3+
.specstory/**

.github/workflows/ci.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ jobs:
1515
os: [ubuntu-latest]
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: subosito/flutter-action@v2
19-
with:
20-
channel: stable
21-
- uses: dart-lang/setup-dart@v1
18+
19+
- name: Import .tool-versions
20+
uses: wasabeef/import-asdf-tool-versions-action@v1.1.0
21+
id: asdf
22+
23+
- name: Setup Flutter
24+
uses: subosito/flutter-action@v2
2225
with:
23-
sdk: stable
26+
flutter-version: ${{ steps.asdf.outputs.flutter }}
27+
cache: true
2428

2529
- name: Set environment
2630
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

.github/workflows/release.yaml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
1-
name: Dart CI
1+
name: Publish to pub.dev
22

33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- 'v[0-9]+.[0-9]+.[0-9]+' # Tag pattern to match for publishing
7+
8+
permissions: # Job-level permissions
9+
contents: read # For actions/checkout
10+
# id-token: write # Not strictly needed when using PUB_ACCESS_TOKEN/PUB_REFRESH_TOKEN directly
711

812
jobs:
9-
build:
10-
name: Run on ${{ matrix.os }}
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
os: [ubuntu-latest]
13+
publish:
14+
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: subosito/flutter-action@v2
18-
with:
19-
channel: stable
20-
- uses: dart-lang/setup-dart@v1
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Import .tool-versions
20+
uses: wasabeef/import-asdf-tool-versions-action@v1.1.0
21+
id: asdf
22+
23+
- name: Setup Flutter
24+
uses: subosito/flutter-action@v2
2125
with:
22-
sdk: stable
26+
flutter-version: ${{ steps.asdf.outputs.flutter }}
27+
cache: true
28+
29+
- name: Activate Melos
30+
run: dart pub global activate melos
31+
32+
- name: Get Melos packages
33+
run: melos get
2334

24-
- name: Set environment
25-
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
35+
- name: Publish packages with Melos
36+
run: melos publish --no-dry-run --yes
2637

27-
- name: Get dependencies
28-
run: |
29-
dart pub global activate melos
30-
melos run get
31-
- name: Release
32-
uses: softprops/action-gh-release@v2
38+
- name: Create GitHub Release
39+
uses: softprops/action-gh-release@v2 # Consider using a more recent version
40+
if: startsWith(github.ref, 'refs/tags/')
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,8 @@
44
*.pyc
55
*.swp
66
.DS_Store
7-
.atom/
87
.buildlog/
98
.history
10-
.svn/
11-
12-
# IntelliJ related
13-
*.iml
14-
*.ipr
15-
*.iws
16-
.idea/
179

1810
# The .vscode folder contains launch configuration and tasks you configure in
1911
# VS Code which you may wish to be included in version control, so this line
@@ -22,14 +14,11 @@
2214

2315
# Flutter/Dart/Pub related
2416
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
25-
pubspec.lock
17+
/pubspec.lock
2618
**/doc/api/
2719
.dart_tool/
2820
.flutter-plugins
2921
.flutter-plugins-dependencies
30-
.packages
31-
.pub-cache/
32-
.pub/
3322
build/
3423

3524
# Android related
@@ -85,3 +74,6 @@ node_modules/
8574
!**/ios/**/default.mode2v3
8675
!**/ios/**/default.pbxuser
8776
!**/ios/**/default.perspectivev3
77+
78+
# SpecStory
79+
.specstory/

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
# lint-staged
5-
pnpm lint-staged --allow-empty --max-arg-length 1
5+
bun lint-staged --allow-empty --max-arg-length 1

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pnpm-lock.yaml
21
.dart_tool/
32
build/
43
ios/

.tool-versions

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
dart 3.4.4
2-
flutter 3.22.2-stable
1+
dart 3.8.1
2+
flutter 3.32.1
3+
bun 1.2.15
4+
nodejs 24.1.0

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
## 1.0.0
2+
3+
**Feature**
4+
5+
- Update flutter_hooks to "^0.21.2"
6+
7+
**Development**
8+
9+
- Update to Melos 6.3.3
10+
111
## 0.0.7+1
212

313
**Development**
4-
- Update some documents
14+
15+
- Update some documents
516

617
## 0.0.6, 0.0.7
718

819
**Feature**
20+
921
- [#40](https://github.com/wasabeef/flutter_hooks_test/pull/40) Add a parameter "wrapper" to allow adding providers to hooks. by [@KalSat](https://github.com/KalSat)
22+
1023
```dart
1124
final result = await buildHook(
1225
(_) {
@@ -23,16 +36,19 @@
2336
## 0.0.5
2437

2538
**Feature**
39+
2640
- [#35](https://github.com/wasabeef/flutter_hooks_test/pull/35) Support Flutter 3.16.0.
2741

2842
## 0.0.3, 0.0.4
2943

3044
**Feature**
45+
3146
- Update Dart to ">=2.17.0 <4.0.0"
3247
- Update Flutter to ">=3.0.0"
3348
- Update flutter_hooks to ">=0.18.0"
3449

3550
**Development**
51+
3652
- Update to Melos 3.0.1
3753

3854
## 0.0.1, 0.0.2

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Daichi Furiya
3+
Copyright (c) 2025 Daichi Furiya
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)