From 92ffc760757fcf06d7638e6d53cd8a2097291e98 Mon Sep 17 00:00:00 2001 From: Lukas Senionis Date: Thu, 27 Oct 2022 01:01:23 +0300 Subject: [PATCH 1/2] Extend CI for PRs --- .github/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) 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 }} From 9c72a55aff9106737808da7ff6bf0a33372e39cc Mon Sep 17 00:00:00 2001 From: Lukas Senionis Date: Fri, 28 Oct 2022 22:00:33 +0300 Subject: [PATCH 2/2] Remove prepack hook --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index cc0421f..2485026 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"