mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-02-09 02:49:29 +08:00
ci: update changesets
This commit is contained in:
10
.github/changeset-version.js
vendored
10
.github/changeset-version.js
vendored
@@ -1,12 +1,12 @@
|
|||||||
// ORIGINALLY FROM CLOUDFLARE WRANGLER:
|
// ORIGINALLY FROM CLOUDFLARE WRANGLER:
|
||||||
// https://github.com/cloudflare/wrangler2/blob/main/.github/changeset-version.js
|
// https://github.com/cloudflare/wrangler2/blob/main/.github/changeset-version.js
|
||||||
|
|
||||||
import { exec } from "child_process"
|
import { execSync } from "child_process"
|
||||||
|
|
||||||
// This script is used by the `release.yml` workflow to update the version of the packages being released.
|
// This script is used by the `release.yml` workflow to update the version of the packages being released.
|
||||||
// The standard step is only to run `changeset version` but this does not update the package-lock.json file.
|
// The standard step is only to run `changeset version` but this does not update the pnpm-lock.yaml file.
|
||||||
// So we also run `npm install`, which does this update.
|
// So we also run `pnpm install`, which does this update.
|
||||||
// This is a workaround until this is handled automatically by `changeset version`.
|
// This is a workaround until this is handled automatically by `changeset version`.
|
||||||
// See https://github.com/changesets/changesets/issues/421.
|
// See https://github.com/changesets/changesets/issues/421.
|
||||||
exec("npx changeset version")
|
execSync("npx changeset version", { stdio: "inherit" })
|
||||||
exec("npm install")
|
execSync("pnpm install --lockfile-only", { stdio: "inherit" })
|
||||||
|
|||||||
Reference in New Issue
Block a user