Repository navigation
69 lines (61 loc) · 1.69 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (61 loc) · 1.69 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Release
defaults:
run:
working-directory: code-debug
on:
release:
types: [published]
jobs:
release:
strategy:
matrix:
os: ['ubuntu-latest']
node-version: ['22.x']
runs-on: ${{ matrix.os }}
steps:
#
# Basic Setup
#
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# - name: Install Module Dependencies
# run: npm clean-install --omit=optional
- name: Install Dependencies
run: npm install
#
# Package and Upload Extension
#
# NOTE:
# The "vscode:prepublish" script in package.json will be executed to compile the extension
# prior to packaging.
#
- name: Package Extension into .vsix file
id: asset
shell: bash
run: >
npx vsce package;
echo "vsix_path=$(ls *.vsix)" >> $GITHUB_ENV
- name: Upload .vsix file to Github as release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: code-debug/${{ env.vsix_path }}
asset_name: ${{ env.vsix_path }}
asset_content_type: application/zip
#
# Publish Extension
#
- name: Publish to VSCode Extension Marketplace
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
run: npx vsce publish --packagePath ${{ env.vsix_path }}
- name: Publish to Open VSX Registry
env:
OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}
run: npx ovsx publish ${{ env.vsix_path }}