Skip to content

Commit 94844c1

Browse files
committed
chore: Update release action to run on tag push so that pub publish works; fixed github api typo (#13)
1 parent 96de89d commit 94844c1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/on-release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: "CI - Release"
22
on:
3-
workflow_dispatch:
4-
release:
5-
types: [released]
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+*"
66

77
jobs:
88
check-package:
@@ -29,11 +29,11 @@ jobs:
2929
deploy-website:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/github-script@v6
32+
- uses: actions/github-script@v7
3333
with:
3434
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
3535
script: |
36-
await github.rest.actions.createworkflowDispatch({
36+
await github.rest.actions.createWorkflowDispatch({
3737
owner: 'zebratechnologies',
3838
repo: 'zeta',
3939
workflow_id: 'deploy-prod.yml',

release-please-config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
".": {
44
"release-type": "dart"
55
}
6-
}
6+
},
7+
"include-component-in-tag": false
78
}

0 commit comments

Comments
 (0)