diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edc978f..d86a6e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,8 @@ jobs: - name: generate release tag id: tag run: | - echo "::set-output name=release_tag::$(date +"%y%m%d.%H.%M")" - sed -i "s/\"1.0.0\"/\"$(date +'%y%m%d.%H.%M')\"/" package.json + 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 - name: install dependencies run: npm ci - name: build