Skip to content

Create .vsix package #5

Create .vsix package

Create .vsix package #5

Workflow file for this run

name: Create .vsix package
on:
workflow_dispatch:
jobs:
build:
name: "Build and package"
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Checkout vscode-viva
uses: actions/checkout@v3
with:
path: vscode-viva
- name: Install the dependencies
run: npm install
working-directory: vscode-viva
- name: Checkout cli-microsoft365
uses: actions/checkout@v3
with:
repository: Adam-it/cli-microsoft365
path: cli-microsoft365
ref: cli-cjs
- name: Print dir
run: |
dir
- name: Restore dependencies for cli-microsoft365
run: npm install
working-directory: cli-microsoft365
- name: Build cli-microsoft365
run: npm run build
working-directory: cli-microsoft365
- name: Run script copy local CLI for M365
run: .\vscode-viva\scripts\cli-for-microsoft365-copy-local-version.ps1 -workspacePath "${{ github.workspace }}"
shell: pwsh
continue-on-error: false
- name: Run script clean local CLI for M365 dependency
run: .\vscode-viva\scripts\cli-for-microsoft365-cleanup.ps1 -workspacePath "${{ github.workspace }}"
shell: pwsh
continue-on-error: false
- name: Package
run: |
npx @vscode/vsce package
working-directory: vscode-viva
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: vsix_package
path: |
vscode-viva/*.vsix