Skip to content

Commit dfbecf4

Browse files
authored
Update main.yml
1 parent e3fc5a3 commit dfbecf4

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
name: Extension Package
22
on: [push]
33
jobs:
4-
Explore-GitHub-Actions:
4+
release:
55
runs-on: ubuntu-latest
66
steps:
7-
- name: Package VS Code Extension
8-
# You may pin to the exact commit or the version.
9-
# uses: nhedger/package-vscode-extension@102a29378b80b78b38adfa820c41387f406aa4f3
10-
uses: nhedger/package-vscode-extension@v1
11-
with:
12-
# Path to the unbundled extension.
13-
extensionPath: nucleo-debugger
14-
# Path to the generated VSIX package.
15-
packagePath: nucleo-debugger/
16-
# Base URL for links detected in Markdown files.
17-
#baseContentUrl: # optional
18-
# Base URL for images detected in Markdown files.
19-
#baseImagetUrl: # optional
20-
# GitHub branch used to publish the package. Used to automatically infer the base content and images URI.
21-
useYarn: true
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' }}
2226

0 commit comments

Comments
 (0)