From 67ef78d167bcbc0108466e2b3955f648a23b15e0 Mon Sep 17 00:00:00 2001 From: ytkimirti Date: Mon, 30 Sep 2024 10:38:01 +0300 Subject: [PATCH] fix: cli --- .github/workflows/release.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5d43c29..6c4743e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,13 +35,19 @@ jobs: - name: Build run: bun run build - - name: Add npm token - run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc + - name: Set NPM_TOKEN + run: npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}} - name: Publish release candidate if: "github.event.release.prerelease" - run: npm publish --access public --tag=canary + run: | + npm pkg delete scripts.prepare + npm publish --access public --tag=canary + working-directory: ./dist - name: Publish if: "!github.event.release.prerelease" - run: npm publish --access public + run: | + npm pkg delete scripts.prepare + npm publish --access public + working-directory: ./dist