This repository was archived by the owner on May 18, 2024. It is now read-only.
File tree 3 files changed +65
-5
lines changed
3 files changed +65
-5
lines changed Original file line number Diff line number Diff line change 7
7
deploy :
8
8
name : " Prepare Release"
9
9
runs-on : windows-latest
10
+
10
11
steps :
11
12
- name : Use Node.js 20
12
13
uses : actions/setup-node@v4
13
14
with :
14
15
node-version : 20
15
16
registry-url : ' https://registry.npmjs.org'
17
+
16
18
- name : Checkout PnP PowerShell VS Code Extension
17
19
uses : actions/checkout@v4
18
20
with :
19
21
path : pnp-powershell-extension
22
+
20
23
- name : Checkout PnP PowerShell
21
24
uses : actions/checkout@v4
22
25
with :
23
26
repository : pnp/powershell
24
27
path : powershell
28
+
25
29
- name : Checkout PnP Script Samples
26
30
uses : actions/checkout@v4
27
31
with :
28
32
repository : pnp/script-samples
29
33
path : script-samples
34
+
30
35
- name : Run create script samples script
31
36
run : .\pnp-powershell-extension\scripts\createScriptSampleDefenition.ps1 -PathToWorkspace ".\"
32
37
shell : pwsh
33
38
continue-on-error : false
39
+
34
40
- name : Run create snippet defenition script
35
41
run : .\pnp-powershell-extension\scripts\createSnippetDefenition.ps1 -PathToWorkspace ".\"
36
42
shell : pwsh
37
43
continue-on-error : false
44
+
38
45
- name : Run update package version script
39
46
run : .\pnp-powershell-extension\scripts\updatePackageVersion.ps1 -PathToWorkspace ".\"
40
47
shell : pwsh
41
48
continue-on-error : false
49
+
42
50
- name : Install dependencies
43
51
run : npm run install:all
44
52
working-directory : pnp-powershell-extension
53
+
45
54
- name : Build
46
55
run : npm run vscode:prepublish
47
56
working-directory : pnp-powershell-extension
57
+
48
58
- name : Create Pull Request
49
59
uses : peter-evans/create-pull-request@v6
50
60
with :
Original file line number Diff line number Diff line change
1
+ name : Create .vsix package
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build :
8
+ name : Create .vsix package
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Use Node.js 20
13
+ uses : actions/setup-node@v4
14
+ with :
15
+ node-version : 20
16
+ registry-url : ' https://registry.npmjs.org'
17
+
18
+ - name : Checkout PnP PowerShell VS Code Extension
19
+ uses : actions/checkout@v4
20
+ with :
21
+ path : pnp-powershell-extension
22
+
23
+ - name : Install dependencies
24
+ run : npm run install:all
25
+
26
+ - name : Build
27
+ run : npm run vscode:prepublish
28
+
29
+ - name : Package
30
+ run : |
31
+ npx @vscode/vsce package
32
+
33
+ - name : Upload artifacts
34
+ uses : actions/upload-artifact@v4
35
+ with :
36
+ name : vsix_package
37
+ path : |
38
+ *.vsix
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- ' *'
7
+ workflow_dispatch :
7
8
8
9
jobs :
9
10
deploy :
11
+ name : Release
10
12
runs-on : ubuntu-latest
13
+
11
14
steps :
12
- - uses : actions/checkout@v2
13
- - uses : actions/setup-node@v1
15
+ - name : Use Node.js 20
16
+ uses : actions/setup-node@v4
14
17
with :
15
- node-version : 16
16
- - run : npm run install:all
17
- - run : npm run vscode:prepublish
18
+ node-version : 20
19
+ registry-url : ' https://registry.npmjs.org'
20
+
21
+ - name : Checkout PnP PowerShell VS Code Extension
22
+ uses : actions/checkout@v4
23
+
24
+ - name : Install dependencies
25
+ run : npm run install:all
26
+
27
+ - name : Build
28
+ run : npm run vscode:prepublish
29
+
18
30
- name : Publish to Visual Studio Marketplace
19
31
uses : HaaLeo/publish-vscode-extension@v1
20
32
with :
You can’t perform that action at this time.
0 commit comments