Skip to content

Commit

Permalink
Ci/configure gulp for ci (#12)
Browse files Browse the repository at this point in the history
* ci: configure gulp

* ci: read package version directly
  • Loading branch information
Wroud authored Sep 8, 2024
1 parent 3fc6c7d commit 58faf7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ci/gulp/prepublish.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { task } from "gulp";
import { execa } from "execa";
import { temporaryFile } from "tempy";
import { rename } from "fs/promises";
import { rename, readFile } from "fs/promises";
import conventionalGithubReleaser from "conventional-github-releaser";
import conventionalChangelog from "conventional-changelog";
import createPreset from "conventional-changelog-conventionalcommits";
Expand Down Expand Up @@ -34,9 +34,9 @@ async function bumpVersion(preset) {
stdio,
});

const { stdout } = await execa`grep '"version"' package.json`
.pipe`awk -F '"' '{print $4}'`;
return stdout;
return await readFile("package.json", "utf8").then(
(content) => content.version,
);
}

async function changelog(preset, version) {
Expand Down

0 comments on commit 58faf7b

Please sign in to comment.