From 76d4d6367f96c9c9378192a7da94c983911f3b9f Mon Sep 17 00:00:00 2001 From: "BugMaker.Huang" Date: Thu, 22 Feb 2024 17:48:01 +0800 Subject: [PATCH] fix: fixed publish command --- .github/workflows/release.yml | 2 +- packages/banana/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32b98b88..395fe1a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: uses: changesets/action@v1 with: commit: 'chore(release): release by changesets' - publish: cd packages/banana && pnpm publish && cd ../banana-react && pnpm publish + publish: pnpm publish:all env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/packages/banana/package.json b/packages/banana/package.json index 955f47fe..e492fb85 100644 --- a/packages/banana/package.json +++ b/packages/banana/package.json @@ -37,6 +37,7 @@ "build": "rimraf umd && rimraf dist && rimraf node && rollup -c ../../rollup.config.mjs && pnpm run tsc && pnpm run cem", "cem": "custom-elements-manifest analyze --config \"custom-elements-manifest.config.js\"", "dev": "rollup -c ../../rollup.config.dev.mjs -p ../../scripts/rollup-plugin-copy-types.js -w --no-watch.clearScreen", + "publish:all": "cd packages/banana && pnpm publish && cd ../banana-react && pnpm publish", "test": "web-test-runner", "tsc": "rimraf types && npx tsc --project ./tsconfig.types.json && node ./copyTypesToDist.cjs" },