From 77136da290a669e07b915b51ba76e184cf5e9f8e Mon Sep 17 00:00:00 2001 From: Guilherme Dantas Date: Thu, 18 Jul 2024 14:43:28 -0300 Subject: [PATCH] Fix publish trigger (#33) --- .github/workflows/release.yml | 4 +++- package.json | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79a8513..78fe8a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,9 @@ jobs: id: changeset uses: changesets/action@v1 with: - publish: pnpm publish -r + # This expects you to have a script called release + # which builds your packages and calls changeset publish + publish: pnpm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index ed6f222..43e87f8 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,8 @@ "build:site": "pnpm run --filter site build", "check-format": "prettier --check .", "format": "prettier --check --write .", + "publish": "changeset publish", + "release": "run-s build publish", "test": "run-s test:core", "test:core": "pnpm run --filter @guidanoli/cmioc test" },