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

Commit

Permalink
Updates pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-it committed May 18, 2024
1 parent 57c2026 commit 3f373b0
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,54 @@ 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: pnp-powershell-extension

- 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: .\pnp-powershell-extension\scripts\createScriptSampleDefenition.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false

- name: Run create snippet defenition script
run: .\pnp-powershell-extension\scripts\createSnippetDefenition.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false

- name: Run update package version script
run: .\pnp-powershell-extension\scripts\updatePackageVersion.ps1 -PathToWorkspace ".\"
shell: pwsh
continue-on-error: false

- name: Install dependencies
run: npm run install:all
working-directory: pnp-powershell-extension

- name: Build
run: npm run vscode:prepublish
working-directory: pnp-powershell-extension

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create .vsix package

on:
workflow_dispatch:

jobs:
build:
name: Create .vsix package
runs-on: ubuntu-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: pnp-powershell-extension

- name: Install dependencies
run: npm run install:all

- name: Build
run: npm run vscode:prepublish

- name: Package
run: |
npx @vscode/vsce package
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: vsix_package
path: |
*.vsix
22 changes: 17 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,29 @@ on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
deploy:
name: Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 16
- run: npm run install:all
- run: npm run vscode:prepublish
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Checkout PnP PowerShell VS Code Extension
uses: actions/checkout@v4

- name: Install dependencies
run: npm run install:all

- name: Build
run: npm run vscode:prepublish

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
Expand Down

0 comments on commit 3f373b0

Please sign in to comment.