Skip to content

Commit 2abe982

Browse files
authored
Update main.yml
1 parent dfbecf4 commit 2abe982

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
name: Extension Package
2-
on: [push]
1+
name: Build VSIX
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
38
jobs:
4-
release:
9+
build:
510
runs-on: ubuntu-latest
11+
612
steps:
7-
- name: Clone Repository
8-
uses: actions/checkout@v2
9-
with:
10-
fetch-depth: 0
11-
- name: Setup Node version
12-
uses: actions/setup-node@v1
13-
with:
14-
node-version: 16
15-
- name: Install dependencies
16-
run: yarn install --frozen-lockfile
17-
- name: Build Package
18-
run: yarn build
19-
env:
20-
NODE_ENV: production
21-
MARQUEE_INSTRUMENTATION_KEY: ${{ secrets.MARQUEE_INSTRUMENTATION_KEY }}
22-
if: ${{ github.event.inputs.releaseChannel == 'stable' }}
23-
- name: Package Extension (Stable)
24-
run: yarn vsce package $RELEASE_VERSION --yarn --no-git-tag-version --no-update-package-json -o "./marquee-$RELEASE_VERSION.vsix" ${{ github.event.inputs.additionalFlags }}
25-
if: ${{ github.event.inputs.releaseChannel == 'stable' }}
26-
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Node.js environment
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '14'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
working-directory: nucleo-debugger
24+
25+
- name: Build VSIX package
26+
run: npm run vsce package
27+
working-directory: nucleo-debugger
28+
29+
- name: Upload VSIX package
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: nucleo-debugger.vsix
33+
path: nucleo-debugger/*.vsix

0 commit comments

Comments
 (0)