-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (49 loc) · 1.46 KB
/
vscode-package.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
47
48
49
50
51
52
53
name: Test Build VSCode Extension
on:
push:
paths:
- "vscode/**"
- ".github/workflows/vscode-package.yml"
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
vscode-extension-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install Dependencies
working-directory: ./vscode
run: npm install --save-exact --save-dev esbuild
- name: Package VS Code Extension
working-directory: ./vscode
run: npm run vscode:prepublish
- name: Package Extension
id: package-extension
uses: nhedger/package-vscode-extension@v1
with:
preRelease: true
extensionPath: vscode
- name: Upload Extension Artifact
uses: actions/upload-artifact@v4
id: artifact-upload
with:
name: vscode-extension
path: ${{ steps.package-extension.outputs.packagePath }}
- name: Send Download Link to Slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": "Download the latest VSCode extension here: ${{ steps.artifact-upload.outputs.artifact-url}}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}