-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (38 loc) · 1.09 KB
/
vscode_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
47
---
name: VSCode Extension Build
on:
push:
branches:
- "main"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.7.0
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3.3.1
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules/*
key: ${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ matrix.node-version }}-yarn-
- run: yarn install || yarn install || yarn install
- run: yarn run package
- uses: actions/upload-artifact@v3
if: ${{ matrix.node-version == '14.x' }}
with:
name: salt-lsp.vsix.zip
path: salt-lsp-*.vsix