-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (40 loc) · 1.01 KB
/
internal-release.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
name: Internal Release
on:
workflow_dispatch:
push:
tags:
- 'v*-internal'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install root dependencies
run: npm ci
- name: Install webview dependencies
working-directory: ./webview
run: npm ci
- name: Build webview
run: npm run build:webview
- name: Install vsce
run: npm install -g @vscode/vsce
- name: Package Extension
run: vsce package
- name: Upload VSIX as artifact
uses: actions/upload-artifact@v3
with:
name: extension
path: "*.vsix"
- name: Create Internal Release
uses: softprops/action-gh-release@v1
with:
files: "*.vsix"
prerelease: true
name: Internal Release ${{ github.ref_name }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}