Skip to content

Commit

Permalink
chore: add prerelease support in publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Sep 1, 2023
1 parent d392f89 commit 6f8240e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,20 @@ jobs:
- name: 🏗 Setup project
uses: ./.github/actions/setup-project

- name: 🚀 Publish to marketplace
- name: 🚀 Publish release to marketplace
if: ${{ !github.event.release.prerelease }}
run: npx vsce publish --no-dependencies
env:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}

- name: 🚀 Publish pre-release to marketplace
if: ${{ github.event.release.prerelease }}
run: npx vsce publish --no-dependencies --pre-release
env:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}

open-vsx:
runs-on: ubuntu-latest
steps:
Expand All @@ -56,7 +64,14 @@ jobs:
env:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}

- name: 🚀 Publish to open-vsx
- name: 🚀 Publish release to open-vsx
if: ${{ !github.event.release.prerelease }}
run: npx ovsx publish --no-dependencies ./vscode-expo.vsix
env:
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}

- name: 🚀 Publish pre-release to open-vsx
if: ${{ github.event.release.prerelease }}
run: npx ovsx publish --no-dependencies --pre-release ./vscode-expo.vsix
env:
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}

0 comments on commit 6f8240e

Please sign in to comment.