1.4.0 #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
release: | |
types: [published] | |
jobs: | |
github-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
- name: 🎁 Package extension | |
run: npx vsce package --no-dependencies | |
env: | |
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }} | |
- name: 📋 Add package to release | |
run: gh release upload ${{ github.ref_name }} vscode-expo-${{ github.ref_name }}.vsix | |
vscode-marketplace: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo from tag | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
- name: 🚀 Publish release to marketplace | |
if: ${{ !github.event.release.prerelease }} | |
run: npx vsce publish --no-dependencies | |
env: | |
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }} | |
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_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.VSCODE_TELEMETRY_KEY }} | |
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} | |
open-vsx: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo from tag | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
- name: 🎁 Package extension | |
run: npx vsce package --no-dependencies --out ./vscode-expo.vsix | |
env: | |
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }} | |
- name: 🚀 Publish release to open-vsx | |
if: ${{ !github.event.release.prerelease }} | |
run: npx ovsx publish --no-dependencies ./vscode-expo.vsix | |
env: | |
OVSX_PAT: ${{ secrets.VSCODE_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.VSCODE_OPENVSX_TOKEN }} |