Skip to content

Commit

Permalink
Fixes pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Jul 31, 2023
1 parent 5636a40 commit 3a71daa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .azure-pipelines/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ parameters:
displayName: The VS Code commit id. When left empty, the main branched is used.
type: string
default: ''
required: false
- name: prereleaseVersion
displayName: The prerelease version. When left empty, dev-${today} is used.
type: string
default: ''
required: false

extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
Expand All @@ -41,8 +43,8 @@ extends:
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
testPlatforms: []
buildSteps:
- name: Install libkrb5-dev
run: sudo apt install -y libkrb5-dev
- script: sudo apt install -y libkrb5-dev
displayName: Install libkrb5-dev

- script: npm ci
displayName: Install NPM dependencies
Expand Down
3 changes: 3 additions & 0 deletions .azure-pipelines/publish-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ extends:
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
testPlatforms: []
buildSteps:
- script: sudo apt install -y libkrb5-dev
displayName: Install libkrb5-dev

- script: npm ci
displayName: Install NPM dependencies

Expand Down
4 changes: 3 additions & 1 deletion scripts/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export function getNightlyVersion(version: string, prerelease: string | undefine
const mm = String(date.getUTCMonth() + 1).padStart(2, '0');
const dd = String(date.getUTCDate()).padStart(2, '0');

prerelease = prerelease || `dev.${yyyy}${mm}${dd}`;
prerelease = prerelease || "dev-${today}";
prerelease = prerelease.replace("${today}", `${yyyy}${mm}${dd}`);

return `0.${minor + 1}.0-${prerelease}`;
}

Expand Down

0 comments on commit 3a71daa

Please sign in to comment.