-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (29 loc) · 888 Bytes
/
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
name: Publish extension
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node.js
uses: actions/setup-node@v3
with:
node-version: 21.x
- name: Build webview
run: cd webview && npm install && npm run build
- name: Build extension
run: cd extension && npm install && npm run build
- name: Build extension (for browser)
run: cd extension && npm run build:browser
- name: Copy README so it gets published
run: cp README.md extension
- name: Copy LICENSE so it gets published
run: cp LICENSE.md extension
- name: Publish to Visual Studio Marketplace
run: cd extension && npm run publish
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}