Pre-Release #54
Workflow file for this run
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
name: Pre-Release | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: "Build and release" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install the dependencies | |
run: npm i | |
- name: Checkout cli-microsoft365 | |
uses: actions/checkout@v3 | |
with: | |
repository: Adam-it/cli-microsoft365 | |
path: cli-microsoft365 | |
ref: cli-cjs | |
- run: | | |
dir | |
- name: Restore dependencies for cli-microsoft365 | |
run: npm ci | |
working-directory: cli-microsoft365/ | |
- name: Build cli-microsoft365 | |
run: npm run build | |
working-directory: cli-microsoft365/ | |
- run: .\scripts\cli-for-microsoft365-copy-local-version.ps1 -workspacePath "${{ github.workspace }}" | |
shell: pwsh | |
continue-on-error: false | |
- run: .\scripts\cli-for-microsoft365-cleanup.ps1 -workspacePath "${{ github.workspace }}" | |
shell: pwsh | |
continue-on-error: false | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: vsix_package | |
path: | | |
*.vsix | |
#TODO: uncomment when ready to publish | |
# - name: Publish | |
# run: npx vsce publish -p ${{ secrets.VSCE_PAT }} --pre-release --baseImagesUrl https://raw.githubusercontent.com/pnp/vscode-viva/dev |