-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (45 loc) · 1.04 KB
/
test.yml
File metadata and controls
47 lines (45 loc) · 1.04 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
name: Test
on:
workflow_dispatch:
inputs:
releaseType:
description: 'Release Type'
required: true
type: choice
default: 'patch'
options:
- patch
- minor
- major
releaseChannel:
description: 'Release Channel'
required: true
type: choice
default: stable
options:
- stable
- edge
publishMarketplace:
description: 'Publish on Visual Studio Marketplace?'
required: true
type: choice
default: 'yes'
options:
- 'yes'
- 'no'
publishOpenVSX:
description: 'Publish on Open VSX Registry?'
required: true
type: choice
default: 'yes'
options:
- 'yes'
- 'no'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Release version
run: |
RELEASE_VERSION=$(npx semver $CURRENT_VERSION -i github.event.inputs.releaseType)
echo "RELEASE_VERSION=$RELEASE_VERSION"