Skip to content

Commit

Permalink
fix: use refname
Browse files Browse the repository at this point in the history
  • Loading branch information
elonmallin committed Nov 13, 2023
1 parent ba4f8d5 commit a2ebc6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit a2ebc6a

Please sign in to comment.