Skip to content

Commit 6496669

Browse files
improve publishing workflow
1 parent c89325e commit 6496669

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ jobs:
1515
- name: Install dependencies
1616
run: dart pub get
1717
- name: Add version
18-
env:
19-
TAG_VERSION: ${{ github.event.release.tag_name }}
20-
run: echo "\n\nversion: ${TAG_VERSION##v}" >> pubspec.yaml
18+
run: |
19+
echo "\n\nversion: ${GITHUB_REF_NAME##v}" >> pubspec.yaml
2120
- name: Check Publish Warnings
2221
run: dart pub publish --dry-run
2322
- name: Publish

0 commit comments

Comments
 (0)