-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (48 loc) · 1.52 KB
/
publish.yml
File metadata and controls
57 lines (48 loc) · 1.52 KB
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
name: Publish Extension
on:
push:
workflow_dispatch:
inputs:
publish_vscode_marketplace:
description: 'Publish to VS Marketplace'
type: boolean
default: true
publish_ovsx:
description: 'Publish to Open VSX'
type: boolean
default: true
permissions:
contents: read
jobs:
publish:
name: Publish Extension
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: npm
- name: Install dependencies
run: npm ci
- name: Set version from branch name
uses: ./.github/actions/set-version
- name: Publish to VS Marketplace
if: ${{ inputs.publish_vscode_marketplace != false }}
run: make publish-marketplace
env:
VERSION: ${{ env.VERSION }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
NODE_ENV: production
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events
- name: Publish to Open VSX
if: ${{ inputs.publish_ovsx != false }}
run: make publish-ovsx
env:
VERSION: ${{ env.VERSION }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
NODE_ENV: production
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events