Skip to content

Commit

Permalink
Create build.yml for testing PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun authored Jul 12, 2024
1 parent f92ce9f commit 8d95940
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build test
on:
workflow_dispatch: # can be triggered manually
pull_request: # and for PRs
jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm install
- name: build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
npm run build

0 comments on commit 8d95940

Please sign in to comment.