-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Setup node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ | ||
|
@@ -30,29 +31,35 @@ jobs: | |
path: cli-microsoft365 | ||
ref: cli-cjs | ||
|
||
- run: | | ||
- name: Print dir | ||
run: | | ||
dir | ||
- name: Restore dependencies for cli-microsoft365 | ||
run: npm install | ||
working-directory: cli-microsoft365 | ||
|
||
- run: | | ||
dir cli-microsoft365/ | ||
- name: Build cli-microsoft365 | ||
run: npm run build | ||
working-directory: cli-microsoft365 | ||
|
||
- run: .\vscode-viva\scripts\cli-for-microsoft365-copy-local-version.ps1 -workspacePath "${{ github.workspace }}" | ||
|
||
- 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 | ||
|
||
- run: .\vscode-viva\scripts\cli-for-microsoft365-cleanup.ps1 -workspacePath "${{ github.workspace }}" | ||
- 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 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- name: Package | ||
run: | | ||
vsce package | ||
working-directory: vscode-viva | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: vsix_package | ||
path: | | ||
|