update signing, update to node 20, @vscode/vsce
This commit is contained in:
Родитель
b477230b20
Коммит
5019991e2f
|
@ -28,7 +28,7 @@ jobs:
|
|||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '20'
|
||||
# Set this option if you want the action to check for the latest available version that satisfies the version spec
|
||||
check-latest: true
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '20'
|
||||
# Set this option if you want the action to check for the latest available version that satisfies the version spec
|
||||
check-latest: true
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v2.1.2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '20'
|
||||
check-latest: true
|
||||
- name: Get Short SHA
|
||||
id: get-short-sha
|
||||
|
|
|
@ -10,9 +10,13 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<FilesToSign Include="$(OutDir)\**\*.vsix">
|
||||
<FilesToSign Include="$(OutDir)\vsix\makefile-tools.vsix">
|
||||
<Authenticode>VsixSHA2</Authenticode>
|
||||
</FilesToSign>
|
||||
|
||||
<FilesToSign Include="$(OutDir)\vsixe\extension.signature.p7s">
|
||||
<Authenticode>VSCodePublisher</Authenticode>
|
||||
</FilesToSign>
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="packages\Microsoft.VisualStudioEng.MicroBuild.Core.0.4.1\build\Microsoft.VisualStudioEng.MicroBuild.Core.targets" />
|
||||
|
|
|
@ -72,9 +72,9 @@ extends:
|
|||
fetchTags: false
|
||||
|
||||
- task: NodeTool@0
|
||||
displayName: Use Node 18.x
|
||||
displayName: Use Node 20.x
|
||||
inputs:
|
||||
versionSpec: 18.x
|
||||
versionSpec: 20.x
|
||||
|
||||
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
|
||||
displayName: Use Yarn 1.x
|
||||
|
@ -87,7 +87,7 @@ extends:
|
|||
- task: Npm@0
|
||||
displayName: npm install vsce
|
||||
inputs:
|
||||
arguments: -g vsce
|
||||
arguments: -g @vscode/vsce
|
||||
|
||||
- task: CmdLine@2
|
||||
displayName: Run VSCE to package vsix
|
||||
|
@ -100,7 +100,7 @@ extends:
|
|||
displayName: npm uninstall vsce
|
||||
inputs:
|
||||
command: uninstall
|
||||
arguments: -g vsce
|
||||
arguments: -g @vscode/vsce
|
||||
|
||||
- task: DeleteFiles@1
|
||||
displayName: Remove code that should not be scanned
|
||||
|
|
|
@ -45,13 +45,13 @@ extends:
|
|||
ignoreLASTEXITCODE: true
|
||||
displayName: "Set the release name"
|
||||
- task: NodeTool@0
|
||||
displayName: "Use Node 18.x"
|
||||
displayName: "Use Node 20.x"
|
||||
inputs:
|
||||
versionSpec: 18.x
|
||||
versionSpec: 20.x
|
||||
- task: Npm@0
|
||||
displayName: "install vsce"
|
||||
inputs:
|
||||
arguments: "-g vsce"
|
||||
arguments: "-g @vscode/vsce"
|
||||
- task: AzureCLI@2
|
||||
displayName: "Generate AAD_TOKEN"
|
||||
inputs:
|
||||
|
@ -62,7 +62,7 @@ extends:
|
|||
$aadToken = az account get-access-token --query accessToken --resource $(AzureGuid) -o tsv
|
||||
Write-Host "##vso[task.setvariable variable=AAD_TOKEN;issecret=true]$aadToken"
|
||||
- script: |
|
||||
vsce publish --packagePath $(Build.StagingDirectory)\vsix\makefile-tools.vsix --pre-release
|
||||
vsce publish --packagePath $(Build.StagingDirectory)\vsix\makefile-tools.vsix --pre-release --manifestPath $(Build.StagingDirectory)\vsix\extension.manifest --signaturePath $(Build.StagingDirectory)\vsix\extension.signature.p7s
|
||||
displayName: "Publish the VSIX"
|
||||
env:
|
||||
VSCE_PAT: $(AAD_TOKEN)
|
||||
|
|
|
@ -68,13 +68,13 @@ extends:
|
|||
targetPath: $(Build.StagingDirectory)\vsix
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: "Use Node 18.x"
|
||||
displayName: "Use Node 20.x"
|
||||
inputs:
|
||||
versionSpec: 18.x
|
||||
versionSpec: 20.x
|
||||
- task: Npm@0
|
||||
displayName: "install vsce"
|
||||
inputs:
|
||||
arguments: "-g vsce"
|
||||
arguments: "-g @vscode/vsce"
|
||||
- task: AzureCLI@2
|
||||
displayName: "Generate AAD_TOKEN"
|
||||
inputs:
|
||||
|
@ -85,7 +85,7 @@ extends:
|
|||
$aadToken = az account get-access-token --query accessToken --resource $(AzureGuid) -o tsv
|
||||
Write-Host "##vso[task.setvariable variable=AAD_TOKEN;issecret=true]$aadToken"
|
||||
- script: |
|
||||
vsce publish --packagePath $(Build.StagingDirectory)\vsix\makefile-tools.vsix
|
||||
vsce publish --packagePath $(Build.StagingDirectory)\vsix\makefile-tools.vsix --manifestPath $(Build.StagingDirectory)\vsix\extension.manifest --signaturePath $(Build.StagingDirectory)\vsix\extension.signature.p7s
|
||||
displayName: "Publish the VSIX"
|
||||
env:
|
||||
VSCE_PAT: $(AAD_TOKEN)
|
||||
|
|
|
@ -17,9 +17,9 @@ steps:
|
|||
zipSources: false
|
||||
|
||||
- task: NodeTool@0
|
||||
displayName: Use Node 18.x
|
||||
displayName: Use Node 20.x
|
||||
inputs:
|
||||
versionSpec: 18.x
|
||||
versionSpec: 20.x
|
||||
|
||||
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
|
||||
displayName: Use Yarn 1.x
|
||||
|
@ -32,7 +32,7 @@ steps:
|
|||
- task: Npm@0
|
||||
displayName: npm install VSCE
|
||||
inputs:
|
||||
arguments: -g vsce
|
||||
arguments: -g @vscode/vsce
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Set build name
|
||||
|
@ -86,6 +86,18 @@ steps:
|
|||
mkdir $(Build.ArtifactStagingDirectory)\vsix
|
||||
if "${{parameters.IsPreRelease}}"=="1" (vsce package --yarn -o $(Build.ArtifactStagingDirectory)\vsix\makefile-tools.vsix --pre-release) else (vsce package --yarn -o $(Build.ArtifactStagingDirectory)\vsix\makefile-tools.vsix)
|
||||
|
||||
- task: CmdLine@2
|
||||
displayName: Generate Extension Manifest
|
||||
inputs:
|
||||
script: |
|
||||
vsce generate-manifest -i $(Build.ArtifactStagingDirectory)\vsix\makefile-tools.vsix -o $(Build.ArtifactStagingDirectory)\vsix\extension.manifest
|
||||
|
||||
- task: CmdLine@2
|
||||
displayName: Prepare manifest for signing
|
||||
inputs:
|
||||
script: |
|
||||
cp $(Build.ArtifactStagingDirectory)\vsix\extension.manifest $(Build.ArtifactStagingDirectory)\vsix\extension.signature.p7s
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Sign VSIX
|
||||
inputs:
|
||||
|
|
|
@ -864,9 +864,10 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^9.0.0",
|
||||
"@types/node": "^10.17.17",
|
||||
"@types/node": "^20.14.2",
|
||||
"@types/uuid": "^9.0.7",
|
||||
"@types/vscode": "^1.74.0",
|
||||
"@vscode/vsce": "^3.1.0",
|
||||
"tslint": "^5.20.1",
|
||||
"tslint-microsoft-contrib": "^6.2.0",
|
||||
"tslint-no-unused-expression-chai": "^0.1.4",
|
||||
|
@ -877,7 +878,6 @@
|
|||
"chai-as-promised": "^7.1.1",
|
||||
"chai-string": "^1.5.0",
|
||||
"typescript": "^5.0.2",
|
||||
"vsce": "^1.95.0",
|
||||
"vrsource-tslint-rules": "^6.0.0",
|
||||
"vscode-nls-dev": "^3.3.2",
|
||||
"gulp": "^4.0.2",
|
||||
|
|
|
@ -417,16 +417,18 @@ export function spawnChildProcess(
|
|||
qArgs,
|
||||
{ cwd: workingDirectory, shell: shellType || true, env: finalEnvironment }
|
||||
);
|
||||
make.setCurPID(child.pid);
|
||||
if (child.pid) {
|
||||
make.setCurPID(child.pid);
|
||||
}
|
||||
|
||||
if (stdoutCallback) {
|
||||
child.stdout.on("data", (data) => {
|
||||
child.stdout?.on("data", (data) => {
|
||||
stdoutCallback(`${data}`);
|
||||
});
|
||||
}
|
||||
|
||||
if (stderrCallback) {
|
||||
child.stderr.on("data", (data) => {
|
||||
child.stderr?.on("data", (data) => {
|
||||
stderrCallback(`${data}`);
|
||||
});
|
||||
}
|
||||
|
|
678
yarn.lock
678
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче