|
1 | 1 | name: Extension Package
|
2 | 2 | on: [push]
|
3 | 3 | jobs:
|
4 |
| - Explore-GitHub-Actions: |
| 4 | + release: |
5 | 5 | runs-on: ubuntu-latest
|
6 | 6 | 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' }} |
22 | 26 |
|
0 commit comments