diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 138157b..c0f6ead 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,22 @@ jobs: - name: Set node uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: pnpm + registry-url: "https://registry.npmjs.org" - run: npx changelogithub + continue-on-error: true 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 -r publish --access public --no-git-checks + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index 24d8d25..dd6a21e 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "prepublishOnly": "nr build", - "release": "bumpp && npm publish", + "release": "bumpp", "start": "esno src/index.ts", "test": "vitest", "typecheck": "tsc --noEmit",