Skip to content

Commit

Permalink
ci: update release workflow to add version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
HomelessDinosaur committed Mar 12, 2024
1 parent 12f06e9 commit 8204d2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Add version
env:
TAG_VERSION: ${{ github.event.release.tag_name }}
run: echo "\n\nversion: $TAG_VERSION" >> pubspec.yaml
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Publish
Expand Down
3 changes: 1 addition & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ environment:
sdk: ^3.2.5

dependencies:
nitric_sdk:
path: ../
nitric_sdk: ^1.0.0
uuid: ^4.3.3

dev_dependencies:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: nitric_sdk
description: A Dart SDK for creating Nitric applications
version: 1.0.0
repository: https://github.com/nitrictech/dart_sdk

environment:
Expand Down

0 comments on commit 8204d2a

Please sign in to comment.