diff --git a/.github/utils/custom-changeset-version.mjs b/.github/utils/custom-changeset-version.mjs deleted file mode 100644 index 01e7431e..00000000 --- a/.github/utils/custom-changeset-version.mjs +++ /dev/null @@ -1,12 +0,0 @@ -import { execSync } from "node:child_process"; - -// This script is used by the `changesets.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. -// So we also run `pnpm install`, which does this update. -// This is a workaround until this is handled automatically by `changeset version`. -// See https://github.com/changesets/changesets/issues/421. - -// Run standard `changeset version` command to apply changesets, bump versions, and update changelogs -execSync("pnpm exec changeset version", { stdio: "inherit" }); -// Update the lockfile with the new versions of the packages -execSync("pnpm install --no-frozen-lockfile", { stdio: "inherit" }); diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 60cfada6..9799962b 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -27,9 +27,6 @@ jobs: - name: Create Version PR or Publish to NPM id: changesets uses: changesets/action@v1 - with: - version: node .github/utils/custom-changeset-version.mjs - publish: pnpm exec changeset publish env: GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}