Skip to content

Commit

Permalink
Merge pull request #689 from Heliozoa/workflow
Browse files Browse the repository at this point in the history
Workflow
  • Loading branch information
nygrenh authored Sep 12, 2023
2 parents 4d3cef0 + 29be28c commit f6adc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
node-version: [18.x]
env:
PRERELEASE: ${{ endsWith ( github.ref_name, '-prerelease' ) && '--pre-release' || '' }}
PRERELEASE: ${{ endsWith ( github.event.release.tag_name, '-prerelease' ) && '--pre-release' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
if: success() && github.event_name == 'release'
run: |
chmod +x bin/validateRelease.sh
bin/validateRelease.sh ${{ github.ref_name }}
bin/validateRelease.sh ${{ github.event.release.tag_name }}
vsce publish -p ${{ secrets.VSCE_PUBLISH_TOKEN }} ${{ env.PRERELEASE }} --packagePath extension/*.vsix
- name: Publish to Open VSX Marketplace
if: success() && github.event_name == 'release'
Expand Down

0 comments on commit f6adc46

Please sign in to comment.