-
Notifications
You must be signed in to change notification settings - Fork 17
53 lines (42 loc) · 1.39 KB
/
release-beta.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Pre-Release
on:
workflow_dispatch:
jobs:
build:
name: "Build and pre-release"
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Checkout vscode-viva
uses: actions/checkout@v4
with:
path: vscode-viva
- name: Install the dependencies
run: npm ci
working-directory: vscode-viva
- name: Checkout cli-microsoft365
uses: actions/checkout@v4
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 i
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: Publish
run: npx @vscode/vsce publish -p ${{ secrets.VSCE_PAT }} --pre-release --baseImagesUrl https://raw.githubusercontent.com/pnp/vscode-viva/dev
working-directory: vscode-viva