Skip to content

Commit 1386394

Browse files
committed
Adds build check on PR opening
1 parent 18ec47d commit 1386394

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/build-on-pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build on PR
2+
on:
3+
pull_request:
4+
types: ["opened"]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Setup Node.js
10+
uses: actions/[email protected]
11+
with:
12+
node-version: v16.19.1
13+
- name: Checkout 🛎️
14+
uses: actions/[email protected]
15+
- name: Build the website
16+
shell: bash
17+
run: |
18+
npm install
19+
npm run generate

0 commit comments

Comments
 (0)