Skip to content

Commit bc4247a

Browse files
authoredMay 9, 2024
Merge pull request #19 from this-is-learning/santoshyadavdev/setup-build-action
Setup GitHub Action to build on PR
2 parents ef0a614 + 1607bd1 commit bc4247a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

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

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build on PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Run build script
24+
run: npm run build

0 commit comments

Comments
 (0)
Failed to load comments.