From 1e47bbf32f21262c0d85fa0c1fe89cf59b67cd4c Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Wed, 24 May 2023 14:56:45 -0700 Subject: [PATCH] Use `pnpm publish -r` to publish packages (#10022) Following the instructions here: https://pnpm.io/using-changesets This should ensure that packages are published in the correct order (see related issue: https://github.com/changesets/changesets/issues/238). --- .github/workflows/release.yml | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e96e47678..8dd6dba30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,8 +47,8 @@ jobs: id: changesets uses: changesets/action@v1 with: - version: pnpm version:prepare - publish: pnpm release + version: pnpm ci:version + publish: pnpm ci:publish env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }} NPM_CONFIG_PROVENANCE: 'true' diff --git a/package.json b/package.json index 42f7e4337..28721c2c4 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "prettier-check": "prettier --check .", "prepare": "husky install", "pack": "cd utils && node -r ts-eager/register ./pack.ts", - "version:prepare": "changeset version && pnpm install --no-frozen-lockfile", - "release": "changeset publish" + "ci:version": "changeset version && pnpm install --no-frozen-lockfile", + "ci:publish": "pnpm publish -r" }, "lint-staged": { "./{*,{api,packages,test,utils}/**/*}.{js,ts}": [