From a2ebc6af50c01f84ffd94efb5d65501d27e9a784 Mon Sep 17 00:00:00 2001 From: Elon Mallin Date: Tue, 14 Nov 2023 00:40:24 +0100 Subject: [PATCH] fix: use refname --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3316f2..5120535 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,17 +24,17 @@ jobs: - name: Resolve is pre-release id: is_prerelease - run: echo "prerelease=$(node -p "'${{ github.ref }}'.split('.')[1] % 2 == 1")" >> $GITHUB_OUTPUT + run: echo "prerelease=$(node -p "'${{ github.ref.name }}'.split('.')[1] % 2 == 1")" >> $GITHUB_OUTPUT - name: Publish Extension (Pre-Release) if: steps.is_prerelease.outputs.prerelease == 'true' - run: npx @vscode/vsce publish --no-git-tag-version --pre-release ${{ github.ref }} + run: npx @vscode/vsce publish --no-git-tag-version --pre-release ${{ github.ref.name }} env: VSCE_PAT: ${{ secrets.VSCE_PAT }} - name: Publish Extension if: steps.is_prerelease.outputs.prerelease == 'false' - run: npx @vscode/vsce publish --no-git-tag-version --pre-release ${{ github.ref }} + run: npx @vscode/vsce publish --no-git-tag-version --pre-release ${{ github.ref.name }} env: VSCE_PAT: ${{ secrets.VSCE_PAT }}