chore: use pre-release pipeline for publishing
This commit is contained in:
Родитель
4294f65e08
Коммит
adc5586583
|
@ -1,5 +1,14 @@
|
||||||
|
trigger: none
|
||||||
pr: none
|
pr: none
|
||||||
|
|
||||||
|
schedules:
|
||||||
|
- cron: '0 9 * * Mon-Thu'
|
||||||
|
displayName: Nightly Release Schedule
|
||||||
|
always: true
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
repositories:
|
repositories:
|
||||||
- repository: templates
|
- repository: templates
|
||||||
|
@ -8,17 +17,10 @@ resources:
|
||||||
ref: main
|
ref: main
|
||||||
endpoint: Monaco
|
endpoint: Monaco
|
||||||
|
|
||||||
parameters:
|
|
||||||
- name: publishExtension
|
|
||||||
displayName: 🚀 Publish Extension
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
|
|
||||||
extends:
|
extends:
|
||||||
template: azure-pipelines/extension/pre-release.yml@templates
|
template: azure-pipelines/extension/pre-release.yml@templates
|
||||||
parameters:
|
parameters:
|
||||||
workingDirectory: dist
|
workingDirectory: dist
|
||||||
usePreReleaseChannel: false
|
|
||||||
vscePackageArgs: --no-dependencies
|
vscePackageArgs: --no-dependencies
|
||||||
cgIgnoreDirectories: 'testdata,demos,.vscode-test'
|
cgIgnoreDirectories: 'testdata,demos,.vscode-test'
|
||||||
buildSteps:
|
buildSteps:
|
||||||
|
@ -26,4 +28,4 @@ extends:
|
||||||
displayName: Install dependencies
|
displayName: Install dependencies
|
||||||
|
|
||||||
- script: npm run compile -- package:prepare --nightly
|
- script: npm run compile -- package:prepare --nightly
|
||||||
displayName: Package
|
displayName: Package Stable
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
This changelog records changes to stable releases since 1.50.2. "TBA" changes here may be available in the [nightly release](https://github.com/microsoft/vscode-js-debug/#nightly-extension) before they're in stable. Note that the minor version (`v1.X.0`) corresponds to the VS Code version js-debug is shipped in, but the patch version (`v1.50.X`) is not meaningful.
|
This changelog records changes to stable releases since 1.50.2. "TBA" changes here may be available in the pre-release version of the extension before they're in stable. Note that the minor version (`v1.X.0`) corresponds to the VS Code version js-debug is shipped in, but the patch version (`v1.50.X`) is not meaningful.
|
||||||
|
|
||||||
## Nightly (only)
|
## Prerelease (only)
|
||||||
|
|
||||||
- feat: make Deno easier to configure
|
- feat: make Deno easier to configure
|
||||||
- fix: path display issues in breakpoint diagnostic tool ([#1343](https://github.com/microsoft/vscode-js-debug/issues/1343))
|
- fix: path display issues in breakpoint diagnostic tool ([#1343](https://github.com/microsoft/vscode-js-debug/issues/1343))
|
||||||
|
|
|
@ -11,12 +11,11 @@ This is a [DAP](https://microsoft.github.io/debug-adapter-protocol/)-based JavaS
|
||||||
|
|
||||||
### Nightly Extension
|
### Nightly Extension
|
||||||
|
|
||||||
The shipped version of VS Code includes the js-debug version at the time of its release, however you may want to install our nightly build to get the latest fixes and features. The nightly build runs at 5PM PST on each day that there are changes ([see pipeline](https://dev.azure.com/vscode/VS%20Code%20debug%20adapters/_build?definitionId=28)). To get the build:
|
The shipped version of VS Code includes the js-debug version at the time of its release, however you may want to install our pre-release build to get the latest fixes and features. The build runs at 5PM PST on each day that there are changes ([see pipeline](https://dev.azure.com/vscode/VS%20Code%20debug%20adapters/_build?definitionId=28)). To get the build:
|
||||||
|
|
||||||
1. Open the extensions view (ctrl+shift+x) and search for `@builtin @id:ms-vscode.js-debug`
|
1. Open the extensions view (ctrl+shift+x) and search for `@builtin @id:ms-vscode.js-debug`
|
||||||
2. Right click on the `JavaScript Debugger` extension and `Disable` it.
|
2. Right click on the `JavaScript Debugger` extension and select `Switch to Pre-Release Version`.
|
||||||
3. Search for `@id:ms-vscode.js-debug-nightly` in the extensions view.
|
3. Reload VS Code
|
||||||
4. Install that extension.
|
|
||||||
|
|
||||||
## What's new?
|
## What's new?
|
||||||
|
|
||||||
|
|
16
gulpfile.js
16
gulpfile.js
|
@ -44,9 +44,9 @@ const nodeTargetsDir = `targets/node`;
|
||||||
const isNightly = process.argv.includes('--nightly') || process.argv.includes('watch');
|
const isNightly = process.argv.includes('--nightly') || process.argv.includes('watch');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extension ID to build. Appended with '-nightly' as necessary.
|
* Extension ID to build.
|
||||||
*/
|
*/
|
||||||
const extensionName = isNightly ? 'js-debug-nightly' : 'js-debug';
|
const extensionName = 'js-debug';
|
||||||
|
|
||||||
function runBuildScript(name) {
|
function runBuildScript(name) {
|
||||||
return new Promise((resolve, reject) =>
|
return new Promise((resolve, reject) =>
|
||||||
|
@ -100,14 +100,6 @@ gulp.task('compile:ts', () =>
|
||||||
.pipe(gulp.dest(buildSrcDir)),
|
.pipe(gulp.dest(buildSrcDir)),
|
||||||
);
|
);
|
||||||
|
|
||||||
async function fixNightlyReadme() {
|
|
||||||
const readmePath = `${buildDir}/README.md`;
|
|
||||||
const readmeText = await readFile(readmePath);
|
|
||||||
const readmeNightlyText = await readFile(`README.nightly.md`);
|
|
||||||
|
|
||||||
await writeFile(readmePath, readmeNightlyText + '\n' + readmeText);
|
|
||||||
}
|
|
||||||
|
|
||||||
const getVersionNumber = () => {
|
const getVersionNumber = () => {
|
||||||
if (process.env.JS_DEBUG_VERSION) {
|
if (process.env.JS_DEBUG_VERSION) {
|
||||||
return process.env.JS_DEBUG_VERSION;
|
return process.env.JS_DEBUG_VERSION;
|
||||||
|
@ -136,10 +128,8 @@ gulp.task('compile:dynamic', async () => {
|
||||||
let packageJson = await readJson(`${buildDir}/package.json`);
|
let packageJson = await readJson(`${buildDir}/package.json`);
|
||||||
packageJson.name = extensionName;
|
packageJson.name = extensionName;
|
||||||
if (isNightly) {
|
if (isNightly) {
|
||||||
packageJson.displayName += ' (Nightly)';
|
|
||||||
packageJson.version = getVersionNumber();
|
packageJson.version = getVersionNumber();
|
||||||
packageJson.preview = true;
|
packageJson.isNightly = true;
|
||||||
await fixNightlyReadme();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
packageJson = deepmerge(packageJson, contributions);
|
packageJson = deepmerge(packageJson, contributions);
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"description": "An extension for debugging Node.js programs and Chrome.",
|
"description": "An extension for debugging Node.js programs and Chrome.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.67.0-insider",
|
"vscode": "^1.71.0-insider",
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
},
|
},
|
||||||
"icon": "resources/logo.png",
|
"icon": "resources/logo.png",
|
||||||
|
|
|
@ -503,7 +503,7 @@ function warnNightly(dap: Dap.Api): void {
|
||||||
if (isNightly) {
|
if (isNightly) {
|
||||||
dap.output({
|
dap.output({
|
||||||
category: 'console',
|
category: 'console',
|
||||||
output: `Note: Using the "preview" debug extension\n`,
|
output: `Note: Using the pre-release version of js-debug\n`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1134,5 +1134,5 @@ export const breakpointLanguages: ReadonlyArray<string> = [
|
||||||
export const packageName: string = pkg.name;
|
export const packageName: string = pkg.name;
|
||||||
export const packageVersion: string = pkg.version;
|
export const packageVersion: string = pkg.version;
|
||||||
export const packagePublisher: string = pkg.publisher;
|
export const packagePublisher: string = pkg.publisher;
|
||||||
export const isNightly = packageName.includes('nightly');
|
export const isNightly = !!pkg.isNightly;
|
||||||
export const extensionId = `${packagePublisher}.${packageName}`;
|
export const extensionId = `${packagePublisher}.${packageName}`;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче