Skip to content

Commit e837a05

Browse files
committed
Fixed pipeline
1 parent ded5744 commit e837a05

File tree

7 files changed

+25
-15
lines changed

7 files changed

+25
-15
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ stages:
212212
213213
git remote rm origin
214214
215-
git remote add origin https://$(githubPersonalAccessToken)@github.com/smapiot/piral.git
215+
git remote add origin https://$(githubPersonalAccessToken)@github.com/smapiot/piral-cli-vite.git
216216
217217
git fetch origin
218218

lerna.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
52
"npmClient": "yarn",
63
"useWorkspaces": true,
7-
"version": "0.15.0"
4+
"version": "0.14.32"
85
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"jest": "^25.0.0",
2424
"jest-cli": "^25.0.0",
25-
"lerna": "^4.0.0",
25+
"lerna": "^6.0.3",
2626
"prettier": "^2.1.1",
2727
"ts-jest": "^25.0.0",
2828
"tslint": "^5.12.1",

packages/piral-cli-vite/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "piral-cli-vite",
3-
"version": "0.15.0",
3+
"version": "0.14.32",
44
"description": "Provides debug and build capabilities for pilets and Piral instances using Vite.",
55
"keywords": [
66
"piral-cli",
@@ -46,8 +46,8 @@
4646
"dependencies": {
4747
"sass": "^1.54.0",
4848
"vite": "^2",
49-
"vite-plugin-codegen": "^0.15.0",
49+
"vite-plugin-codegen": "^0.14.32",
5050
"vite-plugin-environment": "^1.1.2",
51-
"vite-plugin-pilet": "^0.15.0"
51+
"vite-plugin-pilet": "^0.14.32"
5252
}
5353
}

packages/vite-plugin-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-codegen",
3-
"version": "0.15.0",
3+
"version": "0.14.32",
44
"description": "Adds support for codegen files",
55
"keywords": [
66
"vite",

packages/vite-plugin-pilet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-pilet",
3-
"version": "0.15.0",
3+
"version": "0.14.32",
44
"description": "Adds support for pilet output in Vite",
55
"keywords": [
66
"vite",

tools/changelog-version.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,28 @@ function updateChangelogDate(changelogPath = defaultPath) {
2828
writeFileSync(changelogPath, newContent, 'utf8');
2929
}
3030

31+
function getVersion(full, flags) {
32+
const id = process.env.BUILD_BUILDID || '0';
33+
34+
if (flags.includes('--beta')) {
35+
return `${full}-beta.${id}`;
36+
} else if (flags.includes('--alpha')) {
37+
return `${full}-alpha.${id}`;
38+
}
39+
40+
return full;
41+
}
42+
3143
if (require.main === module) {
32-
const version = getChangelogVersion();
33-
const arg = process.argv.pop();
44+
const args = process.argv;
45+
const changelogVersion = getChangelogVersion();
46+
const version = getVersion(changelogVersion, args);
3447
const cwd = process.cwd();
3548
console.log(version);
3649

37-
if (arg === '--update') {
50+
if (args.includes('--update')) {
3851
updateChangelogDate();
39-
} else if (arg === '--apply') {
52+
} else if (args.includes('--apply')) {
4053
execSync(`lerna version ${version} --no-git-tag-version --yes`, {
4154
cwd,
4255
stdio: 'inherit',

0 commit comments

Comments
 (0)