-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 910 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
39
name: Publish Extension
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
default: 'minor x.1.0'
type: choice
options:
- patch x.x.1
- minor x.1.0
- major 1.0.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Dependencies
run: |
npm i
npm i @vscode/vsce -g
- name: Build Extension
run: npm run build
- name: Setup Github Actions
run: |
git config --global user.name "RedCMD"
git config --global user.email "[email protected]"
git add .
git diff-index --quiet HEAD || git commit -m "Sync Github Actions"
- name: Publish Release
run: |
vsce publish ${{ github.event.inputs.version }} -p ${{ secrets.VSCE_PAT }}
git push