Skip to content

Commit f8275ce

Browse files
authored
chore: minor improvements to actions/workflows (#200)
* chore: minor improvements to actions/workflows * tweak
1 parent f37fee8 commit f8275ce

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/actions/publish_flutter_package/action.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ runs:
1111
steps:
1212
- name: 📚 Git Checkout
1313
uses: actions/checkout@v4
14+
1415
- name: 🐦 Setup Flutter
1516
uses: subosito/flutter-action@v2
1617

1718
- name: 🪪 Get Id Token
1819
uses: actions/github-script@v6
1920
with:
2021
script: |
21-
let pub_token = await core.getIDToken('https://pub.dev')
22+
const pub_token = await core.getIDToken('https://pub.dev')
2223
core.exportVariable('PUB_TOKEN', pub_token)
2324
2425
- name: 📢 Authenticate
@@ -38,4 +39,4 @@ runs:
3839
- name: 📢 Publish
3940
shell: ${{ inputs.shell }}
4041
run: flutter pub publish -f
41-
working-directory: ${{ inputs.working-directory }}
42+
working-directory: ${{ inputs.working-directory }}

.github/workflows/publish.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,22 @@ name: Publish to pub.dev
33
on:
44
push:
55
tags:
6-
- 'shorebird_code_push-v[0-9]+.[0-9]+.[0-9]+*' # for tags like: 'v1.2.3'
6+
- "shorebird_code_push-v[0-9]+.[0-9]+.[0-9]+*" # for tags like: 'v1.2.3'
77

88
jobs:
99
publish:
10-
environment: 'pub.dev'
10+
environment: pub.dev
1111
permissions:
1212
id-token: write # Required for authentication using OIDC
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: 📚 Git Checkout
16-
uses: actions/checkout@v4
17-
with:
18-
submodules: recursive
19-
- uses: ./.github/actions/publish_flutter_package
20-
with:
21-
# Specify the github actions deployment environment
22-
working-directory: shorebird_code_push
15+
- name: 📚 Git Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
20+
- name: 📦 Publish Package
21+
uses: ./.github/actions/publish_flutter_package
22+
with:
23+
# Specify the github actions deployment environment
24+
working-directory: shorebird_code_push

0 commit comments

Comments
 (0)