-
Notifications
You must be signed in to change notification settings - Fork 20
74 lines (60 loc) · 2.27 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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 }}