-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 2.25 KB
/
prepare-release.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: "Prepare Release"
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 6'
- cron: '0 12 * * 3'
jobs:
deploy:
name: "Prepare Release"
runs-on: windows-latest
steps:
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Checkout PnP PowerShell VS Code Extension
uses: actions/checkout@v4
with:
path: vscode-pnp-powershell
- name: Checkout PnP PowerShell
uses: actions/checkout@v4
with:
repository: pnp/powershell
path: powershell
- name: Checkout PnP Script Samples
uses: actions/checkout@v4
with:
repository: pnp/script-samples
path: script-samples
- name: Run create script samples script
run: .\vscode-pnp-powershell\scripts\createScriptSampleDefenition.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false
- name: Run create snippet defenition script
run: .\vscode-pnp-powershell\scripts\createSnippetDefenition.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false
- name: Run update package version script
run: .\vscode-pnp-powershell\scripts\updatePackageVersion.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false
- name: Install dependencies
run: npm run install:all
working-directory: vscode-pnp-powershell
- name: Build
run: npm run vscode:prepublish
working-directory: vscode-pnp-powershell
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
path: vscode-pnp-powershell
commit-message: Release
branch: prepare-release
title: Release
body: |
Hi, this is auto generated release. In order to release the extension, please follow the instructions below:
- review, approve and merge to `main` branch
- create a new release with new tag that starts from `v*` prefix and number matches the extension version number from project.json. For example: `v1.0.0`
- wait for the release to be published to the marketplace
...