From 405c58564e834c74d20cab386f6a31210d778232 Mon Sep 17 00:00:00 2001 From: Fityan <63894003+fityannugroho@users.noreply.github.com> Date: Tue, 23 Jul 2024 22:46:43 +0700 Subject: [PATCH] chore: update npm-publish.yml and package.json --- .github/workflows/npm-publish.yml | 3 ++- package.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 78c3f36..ab754a3 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,6 +28,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' # Specify the Node.js version to use + registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: pnpm install @@ -36,6 +37,6 @@ jobs: run: pnpm run build - name: Publish package + run: pnpm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: pnpm publish diff --git a/package.json b/package.json index 162f732..ec03360 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "test": "vitest run", "test:watch": "vitest", "test:cov": "vitest run --coverage", - "build": "tsup src/index.ts src/cli.ts --format esm -d dist --clean --dts src/index.ts --sourcemap --minify", - "prepublish": "pnpm run build" + "build": "tsup src/index.ts src/cli.ts --format esm -d dist --clean --dts src/index.ts --sourcemap --minify" }, "repository": { "type": "git",