Skip to content

Commit

Permalink
support manual release version (#895)
Browse files Browse the repository at this point in the history
* support manual release version

* fixup

* reset version to 0.0.0

* remove unnecessary parameter
  • Loading branch information
joaomoreno authored Aug 30, 2023
1 parent e0857ea commit 11223c3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
20 changes: 12 additions & 8 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ resources:
endpoint: Monaco

parameters:
- name: publishPackage
displayName: 🚀 Publish
type: boolean
default: false
- name: nextVersion
displayName: '🚀 Release Version (eg: none, major, minor, patch, or X.X.X)'
type: string
default: 'none'

extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
Expand All @@ -30,12 +30,16 @@ extends:
- script: npm run build
testPlatforms:
- name: Linux
nodeVersions: [14.x, 16.x, 17.x]
nodeVersions: [14.x, 16.x, 18.x]
- name: MacOS
nodeVersions: [14.x, 16.x, 17.x]
nodeVersions: [14.x, 16.x, 18.x]
- name: Windows
nodeVersions: [14.x, 16.x, 17.x]
nodeVersions: [14.x, 16.x, 18.x]
testSteps:
- script: npm ci
- script: npm test
publishPackage: ${{ parameters.publishPackage }}
${{ if eq(parameters.nextVersion, 'none') }}:
publishPackage: false
${{ else }}:
publishPackage: true
nextVersion: ${{ parameters.nextVersion }}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vscode/vsce",
"version": "2.20.1",
"version": "0.0.0",
"description": "VS Code Extensions Manager",
"repository": {
"type": "git",
Expand Down Expand Up @@ -91,4 +91,4 @@
"watch-files": "src/**",
"spec": "src/test/**/*.ts"
}
}
}

0 comments on commit 11223c3

Please sign in to comment.