Merge pull request #45 from FrogTheFrog/patch-19

Extend CI for PRs
This commit is contained in:
TrainDoctor
2022-10-29 15:16:22 -07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -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 }}

View File

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