Skip to content

Commit 51b56ae

Browse files
authored
Merge branch 'main' into alestiago/acknowledgment-note
2 parents 6d620bf + 95fd22f commit 51b56ae

File tree

20 files changed

+145
-61
lines changed

20 files changed

+145
-61
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Every request must be reviewed and accepted by:
22

3-
* @VeryGoodOpenSource/codeowners
3+
* @alestiago @erickzanardo @felangel @wolfenrain
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish to pub.dev
2+
description: Publish a package to pub.dev
3+
4+
inputs:
5+
working_directory:
6+
description: Directory within the repository where the package is located (defaults to root).
7+
required: false
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- name: 📚 Git Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: 🎯 Setup Dart
16+
uses: dart-lang/setup-dart@v1
17+
18+
- name: 🪪 Get Token
19+
uses: actions/github-script@v6
20+
with:
21+
script: |
22+
const pub_token = await core.getIDToken('https://pub.dev')
23+
core.exportVariable('PUB_TOKEN', pub_token)
24+
25+
- name: 🔐 Authenticate
26+
shell: ${{ inputs.shell }}
27+
run: dart pub token add https://pub.dev --env-var PUB_TOKEN
28+
29+
- name: 📦 Install dependencies
30+
shell: ${{ inputs.shell }}
31+
run: dart pub get
32+
working-directory: ${{ inputs.working_directory }}
33+
34+
- name: 🌵 Dry Run
35+
shell: ${{ inputs.shell }}
36+
run: dart pub publish --dry-run
37+
working-directory: ${{ inputs.working_directory }}
38+
39+
- name: 📢 Publish
40+
shell: ${{ inputs.shell }}
41+
run: dart pub publish -f
42+
working-directory: ${{ inputs.working_directory }}
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
name: publish_dart_frog
1+
name: publish/dart_frog
22

33
on:
44
push:
55
tags:
6-
- "dart_frog-v*.*.*"
7-
workflow_dispatch:
6+
- "dart_frog-v[0-9]+.[0-9]+.[0-9]+*"
87

98
jobs:
109
publish:
10+
environment: pub.dev
11+
runs-on: ubuntu-latest
1112
permissions:
1213
id-token: write # Required for authentication using OIDC
13-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
14-
with:
15-
working_directory: "packages/dart_frog"
16-
secrets:
17-
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
14+
15+
steps:
16+
- name: 📚 Git Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: 📦 Publish
20+
uses: ./.github/actions/pub_publish
21+
with:
22+
working_directory: packages/dart_frog
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
name: publish_dart_frog_auth
1+
name: publish/dart_frog_auth
22

33
on:
44
push:
55
tags:
6-
- "dart_frog_auth-v*.*.*"
7-
workflow_dispatch:
6+
- "dart_frog_auth-v[0-9]+.[0-9]+.[0-9]+*"
87

98
jobs:
109
publish:
10+
environment: pub.dev
11+
runs-on: ubuntu-latest
1112
permissions:
1213
id-token: write # Required for authentication using OIDC
13-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
14-
with:
15-
working_directory: "packages/dart_frog_auth"
16-
secrets:
17-
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
14+
15+
steps:
16+
- name: 📚 Git Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: 📦 Publish
20+
uses: ./.github/actions/pub_publish
21+
with:
22+
working_directory: packages/dart_frog_auth
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
name: publish_dart_frog_cli
1+
name: publish/dart_frog_cli
22

33
on:
44
push:
55
tags:
6-
- "dart_frog_cli-v*.*.*"
7-
workflow_dispatch:
6+
- "dart_frog_cli-v[0-9]+.[0-9]+.[0-9]+*"
87

98
jobs:
109
publish:
10+
environment: pub.dev
11+
runs-on: ubuntu-latest
1112
permissions:
1213
id-token: write # Required for authentication using OIDC
13-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
14-
with:
15-
working_directory: "packages/dart_frog_cli"
16-
secrets:
17-
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
14+
15+
steps:
16+
- name: 📚 Git Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: 📦 Publish
20+
uses: ./.github/actions/pub_publish
21+
with:
22+
working_directory: packages/dart_frog_cli
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
name: publish_dart_frog_gen
1+
name: publish/dart_frog_gen
22

33
on:
44
push:
55
tags:
6-
- "dart_frog_gen-v*.*.*"
7-
workflow_dispatch:
6+
- "dart_frog_gen-v[0-9]+.[0-9]+.[0-9]+*"
87

98
jobs:
109
publish:
10+
environment: pub.dev
11+
runs-on: ubuntu-latest
1112
permissions:
1213
id-token: write # Required for authentication using OIDC
13-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
14-
with:
15-
working_directory: "packages/dart_frog_gen"
16-
secrets:
17-
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
14+
15+
steps:
16+
- name: 📚 Git Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: 📦 Publish
20+
uses: ./.github/actions/pub_publish
21+
with:
22+
working_directory: packages/dart_frog_gen
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
name: publish_dart_frog_test
1+
name: publish/dart_frog_test
22

33
on:
44
push:
55
tags:
6-
- "dart_frog_test-v*.*.*"
7-
workflow_dispatch:
6+
- "dart_frog_test-v[0-9]+.[0-9]+.[0-9]+*"
87

98
jobs:
109
publish:
10+
environment: pub.dev
11+
runs-on: ubuntu-latest
1112
permissions:
1213
id-token: write # Required for authentication using OIDC
13-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
14-
with:
15-
working_directory: "packages/dart_frog_test"
16-
secrets:
17-
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
14+
15+
steps:
16+
- name: 📚 Git Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: 📦 Publish
20+
uses: ./.github/actions/pub_publish
21+
with:
22+
working_directory: packages/dart_frog_test
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
name: publish_dart_frog_web_socket
1+
name: publish/dart_frog_web_socket
22

33
on:
44
push:
55
tags:
6-
- "dart_frog_web_socket-v*.*.*"
7-
workflow_dispatch:
6+
- "dart_frog_web_socket-v[0-9]+.[0-9]+.[0-9]+*"
87

98
jobs:
109
publish:
10+
environment: pub.dev
11+
runs-on: ubuntu-latest
1112
permissions:
1213
id-token: write # Required for authentication using OIDC
13-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
14-
with:
15-
working_directory: "packages/dart_frog_web_socket"
16-
secrets:
17-
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
14+
15+
steps:
16+
- name: 📚 Git Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: 📦 Publish
20+
uses: ./.github/actions/pub_publish
21+
with:
22+
working_directory: packages/dart_frog_web_socket

LICENSE

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

33
Copyright (c) 2022 Very Good Ventures
4+
Copyright (c) 2025 Dart Frog Dev
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1819
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1920
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2021
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
22+
SOFTWARE.

bricks/create_dart_frog/LICENSE

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

33
Copyright (c) 2022 Very Good Ventures
4+
Copyright (c) 2025 Dart Frog Dev
45

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

0 commit comments

Comments
 (0)