From fa578f59e67998ceee5cc9a40de249b626d858f8 Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Thu, 15 Feb 2024 13:07:11 +0100 Subject: [PATCH] Fix version number (#243) --- .github/workflows/vscode.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vscode.yml b/.github/workflows/vscode.yml index c21201a..1773e1f 100644 --- a/.github/workflows/vscode.yml +++ b/.github/workflows/vscode.yml @@ -64,8 +64,13 @@ jobs: - name: Build package working-directory: ${{ env.vscode-dir }} run: | - yarn version --new-version ${{ steps.constants.outputs.version }} --allow-same-version + VERSION=${{ steps.constants.outputs.version }} + VERSION_WITHOUT_V=$(echo $VERSION | sed 's/^v//') + yarn version --new-version $VERSION_WITHOUT_V --allow-same-version yarn run package + if [[ "${{ github.event_name }}" == "release" && "$VERSION_WITHOUT_V" != "$VERSION" ]]; then + cp toit-*.vsix toit-${{ steps.constants.outputs.version }}.vsix + fi - name: Upload vsix artifact uses: actions/upload-artifact@v3