Skip to content

Commit

Permalink
fix semver format
Browse files Browse the repository at this point in the history
ech0-de committed Jun 2, 2023
1 parent a6c6bdd commit 1187949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -16,8 +16,8 @@ jobs:
- name: generate release tag
id: tag
run: |
echo "::set-output name=release_tag::$(Get-Date -Format 'yy.MMdd.HHmm')"
(Get-Content package.json).replace('"version": "1.0.0"', """version"": ""$(Get-Date -Format 'yy.MMdd.HHmm')""") | Set-Content package.json
echo "::set-output name=release_tag::$((Get-Date -Format 'yy.MMdd.HHmm') -replace '\.0+', '.')"
(Get-Content package.json).replace('"version": "1.0.0"', """version"": ""$((Get-Date -Format 'yy.MMdd.HHmm') -replace '\.0+', '.')""") | Set-Content package.json
- name: install dependencies
run: npm ci
- name: build

0 comments on commit 1187949

Please sign in to comment.