diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a846580..69eb9de 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,7 @@ name: Release on: + pull_request: push: branches: - main @@ -20,9 +21,12 @@ jobs: node-version: 16 - name: Setup | Dependencies run: npm i -g pnpm && pnpm i --frozen-lockfile + - name: Build + run: pnpm run build - name: Test run: pnpm run test - name: Release + if: github.event_name != 'pull_request' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 367e4ac..6b74539 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "build": "shx rm -rf dist && tsc -b", "dev": "tsc -b -w", "docs": "typedoc --tsconfig ./tsconfig.json src/**/*", - "prepack": "npm run build", "test": "echo 'No tests for now!'", "prepare": "husky install", "commit": "git-cz"