mirror of
https://github.com/louislam/dockge.git
synced 2025-02-17 09:05:56 +00:00
Update
This commit is contained in:
parent
7f41cc099c
commit
dd58a9cbc4
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
import pkg from "../package.json";
|
import pkg from "../package.json";
|
||||||
import childProcess from "child_process";
|
import childProcess from "child_process";
|
||||||
|
import fs from "fs";
|
||||||
|
|
||||||
const newVersion = process.env.VERSION;
|
const newVersion = process.env.VERSION;
|
||||||
|
|
||||||
|
@ -15,6 +16,7 @@ const exists = tagExists(newVersion);
|
||||||
if (! exists) {
|
if (! exists) {
|
||||||
// Process package.json
|
// Process package.json
|
||||||
pkg.version = newVersion;
|
pkg.version = newVersion;
|
||||||
|
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n");
|
||||||
|
|
||||||
// Also update pnpm-lock.yaml
|
// Also update pnpm-lock.yaml
|
||||||
const npm = /^win/.test(process.platform) ? "pnpm.cmd" : "pnpm";
|
const npm = /^win/.test(process.platform) ? "pnpm.cmd" : "pnpm";
|
||||||
|
|
Loading…
Add table
Reference in a new issue