Extend CI for PRs

This commit is contained in:
Lukas Senionis
2022-10-27 01:01:23 +03:00
committed by FrogTheFrog
parent fb49d64fd3
commit 92ffc76075

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