-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (37 loc) · 1.18 KB
/
publish-extension.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
name: build and publish extension
on:
push:
branches:
- main
paths-ignore: # dont run when changes made to these folders
- '.vscode/**'
jobs:
publish:
name: build & publish
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: install dependencies
run: npm i
- name: 'Automated Version Bump'
uses: 'phips28/gh-action-bump-version@master'
with:
tag-prefix: 'release'
- name: build extension
run: npm run vscode:package
- name: publish to marketplace
run: npx vsce publish -p $VSCE_TOKEN
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- uses: actions/upload-artifact@v2
with:
name: git-assistant-${{ steps.package-version.outputs.current-version }}.vsix
path: git-assistant-*.vsix