Skip to content

Commit fe84532

Browse files
committed
fix: update release workflow to support semantic versioning with pre-release identifiers
Updated sed regex patterns to match versions like 1.0.0-rc.2, 1.0.0-alpha.1, etc. Pattern changed from [0-9\.]\+ to [0-9\.]\+\(-[a-zA-Z0-9\.]\+\)\?
1 parent 36f955d commit fe84532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
release-version:
77
required: true
88
description: 'The version of the release'
9-
default: '0.4.0'
9+
default: '1.0.0'
1010
git-ref:
1111
required: true
1212
description: 'The git revison of repo, branch, tag or commit'
@@ -85,8 +85,8 @@ jobs:
8585
- name: Install Deps
8686
run: |
8787
mix deps.get
88-
sed -i 's%@version "[0-9\.]\+"%@version "${{ github.event.inputs.release-version }}"%' mix.exs
89-
sed -i 's%{:phoenix_session_process, "~> [0-9\.]\+"}%{:phoenix_session_process, "~> ${{ github.event.inputs.release-version }}"}%' README.md
88+
sed -i 's%@version "[0-9\.]\+\(-[a-zA-Z0-9\.]\+\)\?"%@version "${{ github.event.inputs.release-version }}"%' mix.exs
89+
sed -i 's%{:phoenix_session_process, "~> [0-9\.]\+\(-[a-zA-Z0-9\.]\+\)\?"}%{:phoenix_session_process, "~> ${{ github.event.inputs.release-version }}"}%' README.md
9090
9191
- name: Publish to hex.pm
9292
run: |

0 commit comments

Comments
 (0)