Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Commit 3f373b0

Browse files
committed
Updates pipelines
1 parent 57c2026 commit 3f373b0

File tree

3 files changed

+65
-5
lines changed

3 files changed

+65
-5
lines changed

.github/workflows/prepare-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,54 @@ jobs:
77
deploy:
88
name: "Prepare Release"
99
runs-on: windows-latest
10+
1011
steps:
1112
- name: Use Node.js 20
1213
uses: actions/setup-node@v4
1314
with:
1415
node-version: 20
1516
registry-url: 'https://registry.npmjs.org'
17+
1618
- name: Checkout PnP PowerShell VS Code Extension
1719
uses: actions/checkout@v4
1820
with:
1921
path: pnp-powershell-extension
22+
2023
- name: Checkout PnP PowerShell
2124
uses: actions/checkout@v4
2225
with:
2326
repository: pnp/powershell
2427
path: powershell
28+
2529
- name: Checkout PnP Script Samples
2630
uses: actions/checkout@v4
2731
with:
2832
repository: pnp/script-samples
2933
path: script-samples
34+
3035
- name: Run create script samples script
3136
run: .\pnp-powershell-extension\scripts\createScriptSampleDefenition.ps1 -PathToWorkspace ".\"
3237
shell: pwsh
3338
continue-on-error: false
39+
3440
- name: Run create snippet defenition script
3541
run: .\pnp-powershell-extension\scripts\createSnippetDefenition.ps1 -PathToWorkspace ".\"
3642
shell: pwsh
3743
continue-on-error: false
44+
3845
- name: Run update package version script
3946
run: .\pnp-powershell-extension\scripts\updatePackageVersion.ps1 -PathToWorkspace ".\"
4047
shell: pwsh
4148
continue-on-error: false
49+
4250
- name: Install dependencies
4351
run: npm run install:all
4452
working-directory: pnp-powershell-extension
53+
4554
- name: Build
4655
run: npm run vscode:prepublish
4756
working-directory: pnp-powershell-extension
57+
4858
- name: Create Pull Request
4959
uses: peter-evans/create-pull-request@v6
5060
with:

.github/workflows/release-local.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.github/workflows/release.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,29 @@ on:
44
push:
55
tags:
66
- '*'
7+
workflow_dispatch:
78

89
jobs:
910
deploy:
11+
name: Release
1012
runs-on: ubuntu-latest
13+
1114
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v1
15+
- name: Use Node.js 20
16+
uses: actions/setup-node@v4
1417
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+
1830
- name: Publish to Visual Studio Marketplace
1931
uses: HaaLeo/publish-vscode-extension@v1
2032
with:

0 commit comments

Comments
 (0)