Skip to content

Commit 4069938

Browse files
fix: bump scripts (#455)
* fix: bump version script * chore: update package
1 parent fadd62f commit 4069938

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

packages/raystack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@raystack/apsara",
3-
"version": "0.45.7",
3+
"version": "0.48.0",
44
"types": "dist/index.d.ts",
55
"sideEffects": false,
66
"engines": {
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
const semver = require("semver")
2-
const fs = require("fs/promises")
3-
const path = require("path")
1+
const semver = require('semver');
2+
const fs = require('fs/promises');
3+
const path = require('path');
44

5-
const pkg = require("../../package.json")
5+
const pkg = require('../package.json');
66

77
async function updatePackageVersion() {
88
try {
9-
const gitRef = process.env.GIT_REFNAME
9+
const gitRef = process.env.GIT_REFNAME;
1010
const gitTag = semver.valid(gitRef);
1111
if (gitTag && semver.compare(gitTag, pkg.version) > 0) {
1212
pkg.version = gitTag;
13-
console.log('Bumped version to ', gitTag)
14-
await fs.writeFile(path.join(process.cwd(), 'package.json'), JSON.stringify(pkg, null, 2))
13+
console.log('Bumped version to ', gitTag);
14+
await fs.writeFile(
15+
path.join(process.cwd(), 'package.json'),
16+
JSON.stringify(pkg, null, 2)
17+
);
1518
}
1619
} catch (err) {
17-
console.error("Update Package Version error: ", err)
20+
console.error('Update Package Version error: ', err);
1821
}
1922
}
2023

21-
updatePackageVersion()
24+
updatePackageVersion();

0 commit comments

Comments
 (0)