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",