Skip to content

Commit 2b5ec89

Browse files
committed
github: Restore versioning policy
1 parent bab594c commit 2b5ec89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/Publish-Package.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
uses: ni/python-actions/setup-python@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
4646
- name: Set up Poetry
4747
uses: ni/python-actions/setup-poetry@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
48+
# If the version is 0.1.0-alpha.0, this will set the version to 0.1.0
49+
- name: Promote package version to release
50+
run: poetry version patch
4851
- name: Check project version
4952
if: github.event_name == 'release'
5053
uses: ni/python-actions/check-project-version@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
@@ -78,7 +81,7 @@ jobs:
7881
with:
7982
repository-url: ${{ fromJson(env.environment-info)[env.environment].upload-url }}
8083
update_version:
81-
name: Update package version
84+
name: Update package version to next alpha version
8285
runs-on: ubuntu-latest
8386
needs: [build_package]
8487
permissions:
@@ -94,4 +97,7 @@ jobs:
9497
- name: Update project version
9598
uses: ni/python-actions/update-project-version@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
9699
with:
100+
# The default GITHUB_TOKEN cannot trigger PR workflows.
97101
token: ${{ secrets.ADMIN_PAT }}
102+
version-rule: "prepatch"
103+
use-dev-suffix: false

0 commit comments

Comments
 (0)