Skip to content

Prepare Release

Prepare Release #36

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 CLI for Microsoft 365 Extension
uses: actions/checkout@v4
with:
path: vscode-cli-microsoft365
- name: Checkout CLI for Microsoft 365
uses: actions/checkout@v4
with:
repository: pnp/cli-microsoft365
path: cli-microsoft365
- 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-cli-microsoft365\scripts\createScriptSampleDefenition.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false
- name: Run create snippet defenition script
run: .\vscode-cli-microsoft365\scripts\createSnippetDefenition.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false
- name: Run update package version script
run: .\vscode-cli-microsoft365\scripts\updatePackageVersion.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false
- name: Install dependencies
run: npm run install:all
working-directory: vscode-cli-microsoft365
- name: Build
run: npm run vscode:prepublish
working-directory: vscode-cli-microsoft365
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
path: vscode-cli-microsoft365
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
...