Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy package.json to staging directory #654

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.46] - 2024-11-05
### Pipeline
Pipeline only changes

## [1.0.45] - 2024-11-01
### Pipeline
Pipeline only changes
Expand Down
21 changes: 19 additions & 2 deletions Pipelines/vscode/devskim-vscode-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,19 @@ extends:

- powershell: 'Get-ChildItem -Path ''$(Build.BinariesDirectory)'' -Recurse CodeSign* | foreach { Remove-Item -Path $_.FullName }'
displayName: 'Delete Code Sign Summaries'

- task: PowerShell@2
displayName: Move Plugin File
inputs:
targetType: 'inline'
script: 'mv $env:BUILD_BINARIESDIRECTORY/Unsigned_Plugin/*.vsix $env:BUILD_STAGINGDIRECTORY/'

- task: CmdLine@2
displayName: 'List files in StagingDirectory'
inputs:
script: dir /B
workingDirectory: '$(Build.StagingDirectory)'

# Install dependencies and VS Code Extension Manager (vsce >= v2.26.1 needed)
- script: |
cd $(Build.StagingDirectory)
Expand All @@ -155,9 +162,19 @@ extends:
azureSubscription: oss-vs-marketplace-publish-mi-connection
scriptType: "pscore"
scriptLocation: 'inlineScript'
workingDirectory: '$(Build.StagingDirectory)'
inlineScript: |
cd $(Build.StagingDirectory)
vsce publish --azure-credential
$packPath = Resolve-Path $env:BUILD_STAGINGDIRECTORY\*.vsix
if ("$(ReleaseVersion)".Contains("-"))
{
echo "Publishing as --pre-release = $(ReleaseVersion)"
vsce publish --packagePath $packPath --pre-release --azure-credential
}
else
{
echo "Publishing as official release = $(ReleaseVersion)"
vsce publish --packagePath $packPath --azure-credential
}

- task: GitHubRelease@1
displayName: Release to GitHub
Expand Down
Loading