diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d7e827..a5a2513 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,3 +27,15 @@ jobs: - run: npx changelogithub env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Install Dependencies + run: pnpm i + + - name: PNPM build + run: pnpm run build + + - name: Publish to NPM + run: pnpm publish --access public --no-git-checks + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_PROVENANCE: true diff --git a/package.json b/package.json index 4a913b1..d9edf03 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "dev": "unbuild --stub", "lint": "eslint .", "prepublishOnly": "npm run build", - "release": "bumpp && npm publish", + "release": "bumpp", "start": "esno src/index.ts", "test": "vitest", "typecheck": "tsc --noEmit",