-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 831 Bytes
/
deploy.yml
File metadata and controls
41 lines (36 loc) · 831 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
39
40
41
name: Deploy VS Code Extension
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
#release:
# types:
# - created
jobs:
deploy:
name: "Deploy VS Code Extension"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
timeout-minutes: 15
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Install Node.js
id: node-setup
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Dependencies
id: install
run: |
npm install
npm install -g @vscode/vsce
- name: Publish
id: publish
if: success() && startsWith(github.ref, 'refs/tags/')
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}