Skip to content

1.4.3

1.4.3 #37

Workflow file for this run

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-tools-${{ github.ref_name }}.vsix
env:
GH_TOKEN: ${{ github.token }}
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 }}