From f599c5461141d6842d4d9d629c49119744dc5709 Mon Sep 17 00:00:00 2001 From: Peter Chang Date: Wed, 13 Nov 2024 12:19:44 +0000 Subject: [PATCH] Use new token Also add vite flag to empty external output directory --- .github/workflows/npm-publish.yaml | 4 ++-- client/example/vite.config.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index f2e0e48..f157de2 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -38,6 +38,6 @@ jobs: run: pnpm test - name: Publish - run: pnpm -r publish --no-git-checks --tag latest --access public + run: pnpm publish -r --no-git-checks --access public env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_DLS}} diff --git a/client/example/vite.config.ts b/client/example/vite.config.ts index 194109c..bb221c1 100644 --- a/client/example/vite.config.ts +++ b/client/example/vite.config.ts @@ -10,5 +10,6 @@ export default defineConfig({ }, build: { outDir: "../../server/example-client/sdist", + emptyOutDir: true, }, });