-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (29 loc) · 864 Bytes
/
Release.yml
File metadata and controls
38 lines (29 loc) · 864 Bytes
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
on:
workflow_call:
name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: npm install
run: npm install
- name: install vsce
run: npm i -g @vscode/vsce
- name: set git variables
run: |
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
- name: git add
run: git add .
-
name: install esbuild
run: npm i --global esbuild
- name: bundle
run: npm run bundle
- name: publish vsce
run: "vsce publish patch -p $VSCE_TOKEN -m 'CI: bumps version to %s'"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
- name: git push
run: git push origin -u ${{ github.ref_name }} --tags